Class AbstractBaseJPPFSnapshot

java.lang.Object
org.jppf.utils.stats.AbstractBaseJPPFSnapshot
All Implemented Interfaces:
Serializable, JPPFSnapshot
Direct Known Subclasses:
AbstractJPPFSnapshot, SingleValueSnapshot

public abstract class AbstractBaseJPPFSnapshot extends Object implements JPPFSnapshot
Convenience class for collecting time or size statistics. Instances of this class are thread-safe.
See Also:
  • Method Details

    • getTotal

      public double getTotal()
      Description copied from interface: JPPFSnapshot
      Get the total cumulated sum of the values.
      Specified by:
      getTotal in interface JPPFSnapshot
      Returns:
      the cumulated values as a double.
    • getLabel

      public String getLabel()
      Description copied from interface: JPPFSnapshot
      Get the label for this snapshot.
      Specified by:
      getLabel in interface JPPFSnapshot
      Returns:
      the label as a string.
    • getLastUpdateNanos

      public long getLastUpdateNanos()
      Description copied from interface: JPPFSnapshot
      Get the time elapsed between the creation of this snapshot and its last update, expresseed in nanos.
      Specified by:
      getLastUpdateNanos in interface JPPFSnapshot
      Returns:
      the last update time of this snapshot, as the result of calling System.nanoTime() - creationTimeNanos.