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 StringNEWLINEprotected longstartTime-
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 longgetCount()longgetLastSampleTime()longgetMaximumTime()longgetMaxTime()longgetMinimumTime()longgetMinTime()longgetStartTime()doublegetTime()longgetTimesCalled()longgetTotalTime()protected voidpostEntry(long entryTime)voidpostExit(long exitTime)voidsetReset(boolean reset)voidsetTime(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:
getMinimumTimein interfaceTimeStats
-
getMaximumTime
public long getMaximumTime()
- Specified by:
getMaximumTimein interfaceTimeStats
-
getTimesCalled
public long getTimesCalled()
- Specified by:
getTimesCalledin interfaceTimeStats
-
getCount
public long getCount()
- Specified by:
getCountin interfaceorg.glassfish.external.statistics.TimeStatistic
-
getMaxTime
public long getMaxTime()
- Specified by:
getMaxTimein interfaceorg.glassfish.external.statistics.TimeStatistic
-
getMinTime
public long getMinTime()
- Specified by:
getMinTimein interfaceorg.glassfish.external.statistics.TimeStatistic
-
getTotalTime
public long getTotalTime()
- Specified by:
getTotalTimein interfaceorg.glassfish.external.statistics.TimeStatistic
-
getLastSampleTime
public long getLastSampleTime()
- Specified by:
getLastSampleTimein interfaceorg.glassfish.external.statistics.Statistic
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfaceorg.glassfish.external.statistics.Statistic
-
-