Class Snapshot


  • public abstract class Snapshot
    extends Object
    A statistical snapshot of a Snapshot.
    • Constructor Detail

      • Snapshot

        public Snapshot()
    • Method Detail

      • size

        public abstract long size()
        Returns the number of values in the snapshot.
        Returns:
        the number of values
      • getMax

        public abstract double getMax()
        Returns the highest value in the snapshot.
        Returns:
        the highest value
      • getMean

        public abstract double getMean()
        Returns the arithmetic mean of the values in the snapshot.
        Returns:
        the arithmetic mean
      • dump

        public abstract void dump​(OutputStream output)
        Writes the values of the snapshot to the given stream.
        Parameters:
        output - an output stream