|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.icmp.jna.JnaPingRequest
public class JnaPingRequest
This class is used to encapsulate a ping request. A request consist of the pingable address and a signaled state.
| Constructor Summary | |
|---|---|
JnaPingRequest(InetAddress addr,
int identifier,
int sequenceId,
long timeout,
int retries,
PingResponseCallback cb)
|
|
JnaPingRequest(InetAddress addr,
int identifier,
int sequenceId,
long threadId,
long timeout,
int retries,
PingResponseCallback cb)
|
|
JnaPingRequest(JnaPingRequestId id,
long timeout,
int retries,
ThreadCategory log,
PingResponseCallback cb)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Delayed request)
compareTo |
double |
elapsedTime(TimeUnit timeUnit)
Returns the round trip time in the requested TimeUnit (note that a fractional value will be returned if necessary) |
InetAddress |
getAddress()
|
long |
getDelay(TimeUnit unit)
|
JnaPingRequestId |
getId()
getId |
int |
getIdentifier()
|
static long |
getNextTID()
|
long |
getReceivedTimeNanos()
|
long |
getSentTimeNanos()
|
int |
getSequenceNumber()
|
long |
getThreadId()
|
boolean |
isEchoReply()
|
boolean |
isExpired()
isExpired |
boolean |
isProcessed()
isProcessed |
void |
processError(Throwable t)
|
boolean |
processResponse(JnaPingReply reply)
processResponse |
JnaPingRequest |
processTimeout()
processTimeout |
void |
send(V4Pinger v4,
Inet4Address addr4)
|
void |
send(V4Pinger v4,
V6Pinger v6)
Send this V4PingRequest through the given icmpSocket |
void |
send(V6Pinger v6,
Inet6Address addr6)
|
String |
toString()
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JnaPingRequest(JnaPingRequestId id,
long timeout,
int retries,
ThreadCategory log,
PingResponseCallback cb)
public JnaPingRequest(InetAddress addr,
int identifier,
int sequenceId,
long threadId,
long timeout,
int retries,
PingResponseCallback cb)
public JnaPingRequest(InetAddress addr,
int identifier,
int sequenceId,
long timeout,
int retries,
PingResponseCallback cb)
| Method Detail |
|---|
public static final long getNextTID()
public boolean processResponse(JnaPingReply reply)
processResponse
processResponse in interface org.opennms.protocols.rt.Request<JnaPingRequestId,JnaPingRequest,JnaPingReply>reply - a org.opennms.netmgt.icmp.spi.JnaPingReply.PingReply object.
public JnaPingRequest processTimeout()
processTimeout
processTimeout in interface org.opennms.protocols.rt.Request<JnaPingRequestId,JnaPingRequest,JnaPingReply>org.opennms.netmgt.JnaPingRequest.AbstractPingRequest object.public boolean isExpired()
isExpired
public long getDelay(TimeUnit unit)
getDelay in interface DelayedgetDelay in interface org.opennms.protocols.rt.Request<JnaPingRequestId,JnaPingRequest,JnaPingReply>public int compareTo(Delayed request)
compareTo
compareTo in interface Comparable<Delayed>request - a Delayed object.
public JnaPingRequestId getId()
getId
getId in interface org.opennms.protocols.rt.Request<JnaPingRequestId,JnaPingRequest,JnaPingReply>org.opennms.netmgt.icmp.spi.JnaPingRequestId.PingRequestId object.public void processError(Throwable t)
processError in interface org.opennms.protocols.rt.Request<JnaPingRequestId,JnaPingRequest,JnaPingReply>public boolean isProcessed()
isProcessed
isProcessed in interface org.opennms.protocols.rt.Request<JnaPingRequestId,JnaPingRequest,JnaPingReply>
public void send(V4Pinger v4,
V6Pinger v6)
icmpSocket - a IcmpSocket object.public InetAddress getAddress()
public void send(V6Pinger v6,
Inet6Address addr6)
public void send(V4Pinger v4,
Inet4Address addr4)
public String toString()
toString
toString in class ObjectString object.public boolean isEchoReply()
isEchoReply in interface EchoPacketpublic int getIdentifier()
getIdentifier in interface EchoPacketpublic int getSequenceNumber()
getSequenceNumber in interface EchoPacketpublic long getThreadId()
getThreadId in interface EchoPacketpublic long getReceivedTimeNanos()
getReceivedTimeNanos in interface EchoPacketpublic long getSentTimeNanos()
getSentTimeNanos in interface EchoPacketpublic double elapsedTime(TimeUnit timeUnit)
EchoPacket
elapsedTime in interface EchoPacket
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||