Class TimeStatsAbstractImpl
- java.lang.Object
-
- org.glassfish.flashlight.datatree.impl.AbstractTreeNode
-
- org.glassfish.flashlight.statistics.impl.TimeStatsAbstractImpl
-
- All Implemented Interfaces:
Comparable<TreeNode>
,org.glassfish.external.statistics.Statistic
,org.glassfish.external.statistics.TimeStatistic
,TreeElement
,TreeNode
,TimeStats
- Direct Known Subclasses:
TimeStatsMillisImpl
,TimeStatsNanosImpl
public abstract class TimeStatsAbstractImpl extends AbstractTreeNode implements TimeStats
- Author:
- Harpreet Singh
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
NEWLINE
protected long
startTime
-
Fields inherited from class org.glassfish.flashlight.datatree.impl.AbstractTreeNode
category, children, description, enabled, name
-
-
Constructor Summary
Constructors Constructor Description TimeStatsAbstractImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
long
getLastSampleTime()
long
getMaximumTime()
long
getMaxTime()
long
getMinimumTime()
long
getMinTime()
long
getStartTime()
double
getTime()
long
getTimesCalled()
long
getTotalTime()
protected void
postEntry(long entryTime)
void
postExit(long exitTime)
void
setReset(boolean reset)
void
setTime(long time)
-
Methods inherited from class org.glassfish.flashlight.datatree.impl.AbstractTreeNode
addChild, compareTo, equals, getCategory, getChild, getChildNodes, getChildNodesImmutable, getCompletePathName, getDescription, getEnabledChildNodes, getName, getNode, getNodes, getNodes, getParent, getPossibleParentNode, getValue, hasChildNodes, hashCode, isEnabled, removeChild, setCategory, setDescription, setEnabled, setName, setParent, toString, traverse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.external.statistics.Statistic
getDescription, getName, getUnit
-
Methods inherited from interface org.glassfish.flashlight.datatree.TreeElement
getName, getValue, setName
-
Methods inherited from interface org.glassfish.flashlight.datatree.TreeNode
addChild, getCategory, getChild, getChildNodes, getCompletePathName, getDescription, getEnabledChildNodes, getNode, getNodes, getNodes, getParent, getPossibleParentNode, hasChildNodes, isEnabled, removeChild, setCategory, setDescription, setEnabled, setParent, traverse
-
-
-
-
Field Detail
-
NEWLINE
protected static final String NEWLINE
-
startTime
protected long startTime
-
-
Method Detail
-
postEntry
protected void postEntry(long entryTime)
-
postExit
public void postExit(long exitTime)
-
getMinimumTime
public long getMinimumTime()
- Specified by:
getMinimumTime
in interfaceTimeStats
-
getMaximumTime
public long getMaximumTime()
- Specified by:
getMaximumTime
in interfaceTimeStats
-
getTimesCalled
public long getTimesCalled()
- Specified by:
getTimesCalled
in interfaceTimeStats
-
getCount
public long getCount()
- Specified by:
getCount
in interfaceorg.glassfish.external.statistics.TimeStatistic
-
getMaxTime
public long getMaxTime()
- Specified by:
getMaxTime
in interfaceorg.glassfish.external.statistics.TimeStatistic
-
getMinTime
public long getMinTime()
- Specified by:
getMinTime
in interfaceorg.glassfish.external.statistics.TimeStatistic
-
getTotalTime
public long getTotalTime()
- Specified by:
getTotalTime
in interfaceorg.glassfish.external.statistics.TimeStatistic
-
getLastSampleTime
public long getLastSampleTime()
- Specified by:
getLastSampleTime
in interfaceorg.glassfish.external.statistics.Statistic
-
getStartTime
public long getStartTime()
- Specified by:
getStartTime
in interfaceorg.glassfish.external.statistics.Statistic
-
-