|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.icmp.jni.JniPingRequest
public class JniPingRequest
This class is used to encapsulate a ping request. A request consist of the pingable address and a signaled state.
| Constructor Summary | |
|---|---|
JniPingRequest(InetAddress addr,
int identifier,
int sequenceNumber,
long timeout,
int retries,
PingResponseCallback cb)
|
|
JniPingRequest(InetAddress addr,
int identifier,
int sequenceNumber,
long threadId,
long timeout,
int retries,
PingResponseCallback cb)
|
|
JniPingRequest(InetAddress addr,
int identifier,
int sequenceNumber,
long threadId,
long timeout,
int retries,
ThreadCategory logger,
PingResponseCallback cb)
|
|
JniPingRequest(JniPingRequestId id,
long timeout,
int retries,
ThreadCategory log,
PingResponseCallback callback)
|
|
| 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) |
long |
getDelay(TimeUnit unit)
|
JniPingRequestId |
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(JniPingResponse reply)
processResponse |
JniPingRequest |
processTimeout()
processTimeout |
void |
send(org.opennms.protocols.icmp.IcmpSocket icmpSocket)
Send this JniPingRequest through the given icmpSocket |
String |
toString()
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JniPingRequest(JniPingRequestId id,
long timeout,
int retries,
ThreadCategory log,
PingResponseCallback callback)
public JniPingRequest(InetAddress addr,
int identifier,
int sequenceNumber,
long threadId,
long timeout,
int retries,
ThreadCategory logger,
PingResponseCallback cb)
public JniPingRequest(InetAddress addr,
int identifier,
int sequenceNumber,
long threadId,
long timeout,
int retries,
PingResponseCallback cb)
public JniPingRequest(InetAddress addr,
int identifier,
int sequenceNumber,
long timeout,
int retries,
PingResponseCallback cb)
| Method Detail |
|---|
public static final long getNextTID()
public boolean processResponse(JniPingResponse reply)
processResponse
processResponse in interface org.opennms.protocols.rt.Request<JniPingRequestId,JniPingRequest,JniPingResponse>reply - a org.opennms.netmgt.icmp.spi.JniPingResponse.PingReply object.
public JniPingRequest processTimeout()
processTimeout
processTimeout in interface org.opennms.protocols.rt.Request<JniPingRequestId,JniPingRequest,JniPingResponse>JniPingRequest object.public boolean isExpired()
isExpired
public String toString()
toString
toString in class ObjectString object.public long getDelay(TimeUnit unit)
getDelay in interface DelayedgetDelay in interface org.opennms.protocols.rt.Request<JniPingRequestId,JniPingRequest,JniPingResponse>public int compareTo(Delayed request)
compareTo
compareTo in interface Comparable<Delayed>request - a Delayed object.
public JniPingRequestId getId()
getId
getId in interface org.opennms.protocols.rt.Request<JniPingRequestId,JniPingRequest,JniPingResponse>org.opennms.netmgt.icmp.spi.JniPingRequestId.PingRequestId object.public void processError(Throwable t)
processError in interface org.opennms.protocols.rt.Request<JniPingRequestId,JniPingRequest,JniPingResponse>public boolean isProcessed()
isProcessed
isProcessed in interface org.opennms.protocols.rt.Request<JniPingRequestId,JniPingRequest,JniPingResponse>public void send(org.opennms.protocols.icmp.IcmpSocket icmpSocket)
icmpSocket - a IcmpSocket 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 | |||||||||