|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.sms.ping.internal.PingReply
public final class PingReply
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 | |
|---|---|
PingReply(org.smslib.InboundMessage pkt,
long receiveTime)
Constructs a new reply with the packet as the contents of the reply. |
|
| Method Summary | |
|---|---|
org.smslib.InboundMessage |
getPacket()
getPacket |
long |
getReceiveTimestamp()
getReceiveTimestamp |
PingRequestId |
getRequestId()
getRequestId |
void |
setReceiveTimestamp(long millis)
setReceiveTimestamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PingReply(org.smslib.InboundMessage pkt,
long receiveTime)
pkt - The received packet.receiveTime - a long.| Method Detail |
|---|
public PingRequestId getRequestId()
getRequestId
getRequestId in interface org.opennms.protocols.rt.ResponseWithId<PingRequestId>PingRequestId object.public org.smslib.InboundMessage getPacket()
getPacket
InboundMessage object.public void setReceiveTimestamp(long millis)
setReceiveTimestamp
millis - a long.public long getReceiveTimestamp()
getReceiveTimestamp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||