org.opennms.netmgt.icmp.jna.AbstractPinger
.public abstract class AbstractPinger<T extends InetAddress> extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected Metric |
m_metric
Deprecated.
|
protected AtomicReference<Throwable> |
m_throwable
Deprecated.
|
static double |
NANOS_PER_MILLI
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractPinger(NativeDatagramSocket pingSocket)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addPingReplyListener(PingReplyListener listener)
Deprecated.
|
void |
closeSocket()
Deprecated.
|
int |
getCount()
Deprecated.
|
protected 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.
|
public static final double NANOS_PER_MILLI
protected final AtomicReference<Throwable> m_throwable
protected final Metric m_metric
protected AbstractPinger(NativeDatagramSocket pingSocket)
protected NativeDatagramSocket getPingSocket()
public int getCount()
public boolean isFinished()
public void start()
public void stop() throws InterruptedException
InterruptedException
public void closeSocket()
protected List<PingReplyListener> getListeners()
public abstract PingReplyMetric ping(T addr, int id, int sequenceNumber, int count, long interval) throws InterruptedException
InterruptedException
public void addPingReplyListener(PingReplyListener listener)
Copyright © 2021. All rights reserved.