Package org.opennms.jicmp.standalone
Class Metric
- java.lang.Object
-
- org.opennms.jicmp.standalone.Metric
-
- Direct Known Subclasses:
PingReplyMetric
public class Metric extends Object
Metric- Author:
- brozow
-
-
Constructor Summary
Constructors Constructor Description Metric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAverage()
int
getCount()
long
getMaximum()
long
getMinimum()
double
getStandardDeviation()
String
getSummary(TimeUnit unit)
double
getSumOfSquaresOfDifferences()
void
update(long sample)
update of nanos value
-
-
-
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
-
-