org.opennms.jicmp.standalone
Class Metric

java.lang.Object
  extended by org.opennms.jicmp.standalone.Metric
Direct Known Subclasses:
PingReplyMetric

public class Metric
extends Object

Metric

Author:
brozow

Constructor Summary
Metric()
           
 
Method Summary
 double getAverage()
           
 int getCount()
           
 long getMaximum()
           
 long getMinimum()
           
 double getStandardDeviation()
           
 String getSummary(TimeUnit unit)
           
 double getSumOfSquaresOfDifferences()
           
 void update(long sample)
          update of nanos value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 String getSummary(TimeUnit unit)


Copyright © 2011. All Rights Reserved.