|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.icmp.jni6.Jni6PingResponse
public final class Jni6PingResponse
This class is use to encapsulate an ICMP reply that conforms to the
packetclass. The reply must be of type ICMP Echo Reply and be
the correct length.
When constructed by the create method the returned reply
encapsulates the sender's address and the received packet as final,
non-mutable values for the instance.
| Constructor Summary | |
|---|---|
Jni6PingResponse(Inet6Address addr,
org.opennms.protocols.icmp6.ICMPv6EchoReply echoReply)
Constructs a new reply with the passed address and packet as the contents of the reply. |
|
| Method Summary | |
|---|---|
double |
elapsedTime(TimeUnit timeUnit)
Returns the round trip time in the requested TimeUnit (note that a fractional value will be returned if necessary) |
Inet6Address |
getAddress()
Returns the internet address of the host that sent the reply. |
int |
getIdentifier()
|
long |
getReceivedTimeNanos()
|
Jni6PingRequestId |
getRequestId()
getRequestId |
long |
getSentTimeNanos()
|
int |
getSequenceNumber()
|
long |
getThreadId()
|
boolean |
isEchoReply()
Returns true if the recovered packet is an echo reply. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Jni6PingResponse(Inet6Address addr,
org.opennms.protocols.icmp6.ICMPv6EchoReply echoReply)
addr - The address of the ICMP sender.echoReply - The received packet.| Method Detail |
|---|
public Inet6Address getAddress()
InetAddress object.public Jni6PingRequestId getRequestId()
getRequestId
getRequestId in interface org.opennms.protocols.rt.ResponseWithId<Jni6PingRequestId>org.opennms.netmgt.icmp.spi.PingRequestId 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 getSentTimeNanos()
getSentTimeNanos in interface EchoPacketpublic long getReceivedTimeNanos()
getReceivedTimeNanos in interface EchoPacketpublic double elapsedTime(TimeUnit timeUnit)
EchoPacket
elapsedTime in interface EchoPacketpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||