Package org.opennms.jicmp.standalone
Class PingReplyMetric
- java.lang.Object
-
- org.opennms.jicmp.standalone.Metric
-
- org.opennms.jicmp.standalone.PingReplyMetric
-
- All Implemented Interfaces:
PingReplyListener
public class PingReplyMetric extends Metric implements PingReplyListener
PingReplyMetric- Author:
- brozow
-
-
Constructor Summary
Constructors Constructor Description PingReplyMetric(int count, long interval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
await()
void
onPingReply(InetAddress address, org.opennms.jicmp.standalone.PingReply reply)
-
Methods inherited from class org.opennms.jicmp.standalone.Metric
getAverage, getCount, getMaximum, getMinimum, getStandardDeviation, getSummary, getSumOfSquaresOfDifferences, update
-
-
-
-
Method Detail
-
onPingReply
public void onPingReply(InetAddress address, org.opennms.jicmp.standalone.PingReply reply)
- Specified by:
onPingReply
in interfacePingReplyListener
-
await
public void await() throws InterruptedException
- Throws:
InterruptedException
-
-