Package org.jppf.utils.stats
Class AbstractBaseJPPFSnapshot
java.lang.Object
org.jppf.utils.stats.AbstractBaseJPPFSnapshot
- All Implemented Interfaces:
Serializable,JPPFSnapshot
- Direct Known Subclasses:
AbstractJPPFSnapshot,SingleValueSnapshot
Convenience class for collecting time or size statistics.
Instances of this class are thread-safe.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jppf.utils.stats.JPPFSnapshot
JPPFSnapshot.LabelBasedFilter, JPPFSnapshot.LabelExcludingFilter, JPPFSnapshot.LabelIncludingFilter -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jppf.utils.stats.JPPFSnapshot
addValues, copy, getAvg, getLatest, getMax, getMin, getValueCount, reset
-
Method Details
-
getTotal
public double getTotal()Description copied from interface:JPPFSnapshotGet the total cumulated sum of the values.- Specified by:
getTotalin interfaceJPPFSnapshot- Returns:
- the cumulated values as a double.
-
getLabel
Description copied from interface:JPPFSnapshotGet the label for this snapshot.- Specified by:
getLabelin interfaceJPPFSnapshot- Returns:
- the label as a string.
-
getLastUpdateNanos
public long getLastUpdateNanos()Description copied from interface:JPPFSnapshotGet the time elapsed between the creation of this snapshot and its last update, expresseed in nanos.- Specified by:
getLastUpdateNanosin interfaceJPPFSnapshot- Returns:
- the last update time of this snapshot, as the result of calling
System.nanoTime() - creationTimeNanos.
-