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