Class AbstractJPPFSnapshot

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

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

    • reset

      public void reset()
      Reset all counters to their initial values.
    • assignLatestToMax

      public abstract void assignLatestToMax()
      Assign the value of getLatest() to max.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLatest

      public double getLatest()
      Description copied from interface: JPPFSnapshot
      Get the latest observed value.
      Returns:
      the latest value as a double.
    • getMin

      public double getMin()
      Description copied from interface: JPPFSnapshot
      Get the smallest observed value.
      Returns:
      the minimum value as a double.
    • getMax

      public double getMax()
      Description copied from interface: JPPFSnapshot
      Get the peak observed value.
      Returns:
      the peak value double.
    • getAvg

      public double getAvg()
      Description copied from interface: JPPFSnapshot
      Get the average value.
      Returns:
      the average value as a double.
    • getValueCount

      public long getValueCount()
      Description copied from interface: JPPFSnapshot
      Get the count of values added to this snapshot.
      Returns:
      the count of values as a long.