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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Metric
public Metric()
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 String getSummary(TimeUnit unit)
Copyright © 2011. All Rights Reserved.