Modifier and Type | Field and Description |
---|---|
protected Metric |
m_metric |
protected AtomicReference<Throwable> |
m_throwable |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPinger(NativeDatagramSocket pingSocket) |
Modifier and Type | Method and Description |
---|---|
void |
addPingReplyListener(PingReplyListener listener) |
void |
closeSocket() |
int |
getCount() |
protected List<PingReplyListener> |
getListeners() |
protected NativeDatagramSocket |
getPingSocket() |
boolean |
isFinished() |
abstract PingReplyMetric |
ping(T addr,
int id,
int sequenceNumber,
int count,
long interval) |
void |
start() |
void |
stop() |
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 © 2015. All rights reserved.