Package org.glassfish.pfl.tf.timer.spi
Class Statistics
- java.lang.Object
-
- org.glassfish.pfl.tf.timer.spi.Statistics
-
public class Statistics extends java.lang.ObjectA simple read-only holder for accumulated statistics.
-
-
Field Summary
Fields Modifier and Type Field Description private doubleaverageprivate longcountprivate doublemaxprivate doubleminprivate doublestandardDeviation
-
Constructor Summary
Constructors Constructor Description Statistics(long count, double min, double max, double average, double standardDeviation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleaverage()Return the current average of the data, or -1 if there is no data.longcount()Return the number of data points recorded.booleanequals(java.lang.Object obj)inthashCode()doublemax()Return the maximum value of call data points records.doublemin()Return the minimum value of call data points records.doublestandardDeviation()Return the standard deviation of the data, or -1 if there is no data.
-
-
-
Method Detail
-
count
public long count()
Return the number of data points recorded.
-
min
public double min()
Return the minimum value of call data points records.
-
max
public double max()
Return the maximum value of call data points records.
-
average
public double average()
Return the current average of the data, or -1 if there is no data.
-
standardDeviation
public double standardDeviation()
Return the standard deviation of the data, or -1 if there is no data.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-