Class Metric

  • Direct Known Subclasses:
    PingReplyMetric

    public class Metric
    extends java.lang.Object
    Metric
    Author:
    brozow
    • Constructor Detail

      • Metric

        public Metric()
    • Method Detail

      • getCount

        public int getCount()
        Returns:
        the count
      • getSumOfSquaresOfDifferences

        public double getSumOfSquaresOfDifferences()
        Returns:
        the sumOfSquaresOfDifferences
      • getStandardDeviation

        public double getStandardDeviation()
        Returns:
        the stdDevElapsedNanos
      • getAverage

        public double getAverage()
        Returns:
        the avgElapsedNanos
      • getMinimum

        public long getMinimum()
        Returns:
        the minElapsedNanos
      • getMaximum

        public long getMaximum()
        Returns:
        the maxElapsedNanos
      • update

        public void update​(long sample)
        update of nanos value
      • getSummary

        public java.lang.String getSummary​(java.util.concurrent.TimeUnit unit)