Package org.opennms.jicmp.standalone
Class V4Pinger
- java.lang.Object
-
- org.opennms.jicmp.standalone.AbstractPinger<java.net.Inet4Address>
-
- org.opennms.jicmp.standalone.V4Pinger
-
- All Implemented Interfaces:
java.lang.Runnable
public class V4Pinger extends AbstractPinger<java.net.Inet4Address>
PingListener- Author:
- brozow
-
-
Field Summary
-
Fields inherited from class org.opennms.jicmp.standalone.AbstractPinger
m_metric, m_throwable, NANOS_PER_MILLI
-
-
Constructor Summary
Constructors Constructor Description V4Pinger(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PingReplyMetric
ping(java.net.Inet4Address addr, int id, int sequenceNumber, int count, long interval)
void
run()
-
Methods inherited from class org.opennms.jicmp.standalone.AbstractPinger
addPingReplyListener, closeSocket, getCount, getListeners, getPingSocket, isFinished, start, stop
-
-
-
-
Method Detail
-
run
public void run()
-
ping
public PingReplyMetric ping(java.net.Inet4Address addr, int id, int sequenceNumber, int count, long interval) throws java.lang.InterruptedException
- Specified by:
ping
in classAbstractPinger<java.net.Inet4Address>
- Throws:
java.lang.InterruptedException
-
-