Package org.opennms.jicmp.standalone
Class AbstractPinger<T extends InetAddress>
- java.lang.Object
-
- org.opennms.jicmp.standalone.AbstractPinger<T>
-
- All Implemented Interfaces:
Runnable
public abstract class AbstractPinger<T extends InetAddress> extends Object implements Runnable
Deprecated.This class seems like it's mostly a duplicate ofAbstractPinger.JnaPinger- Author:
- brozow
-
-
Field Summary
Fields Modifier and Type Field Description protected Metricm_metricDeprecated.protected AtomicReference<Throwable>m_throwableDeprecated.static doubleNANOS_PER_MILLIDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPinger(NativeDatagramSocket pingSocket)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddPingReplyListener(PingReplyListener listener)Deprecated.voidcloseSocket()Deprecated.intgetCount()Deprecated.protected List<PingReplyListener>getListeners()Deprecated.protected NativeDatagramSocketgetPingSocket()Deprecated.booleanisFinished()Deprecated.abstract PingReplyMetricping(T addr, int id, int sequenceNumber, int count, long interval)Deprecated.voidstart()Deprecated.voidstop()Deprecated.
-
-
-
Field Detail
-
NANOS_PER_MILLI
public static final double NANOS_PER_MILLI
Deprecated.- See Also:
- Constant Field Values
-
m_throwable
protected final AtomicReference<Throwable> m_throwable
Deprecated.
-
m_metric
protected final Metric m_metric
Deprecated.
-
-
Constructor Detail
-
AbstractPinger
protected AbstractPinger(NativeDatagramSocket pingSocket)
Deprecated.
-
-
Method Detail
-
getPingSocket
protected NativeDatagramSocket getPingSocket()
Deprecated.- Returns:
- the pingSocket
-
getCount
public int getCount()
Deprecated.
-
isFinished
public boolean isFinished()
Deprecated.
-
start
public void start()
Deprecated.
-
stop
public void stop() throws InterruptedExceptionDeprecated.- Throws:
InterruptedException
-
closeSocket
public void closeSocket()
Deprecated.
-
getListeners
protected List<PingReplyListener> getListeners()
Deprecated.
-
ping
public abstract PingReplyMetric ping(T addr, int id, int sequenceNumber, int count, long interval) throws InterruptedException
Deprecated.- Throws:
InterruptedException
-
addPingReplyListener
public void addPingReplyListener(PingReplyListener listener)
Deprecated.
-
-