|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.veraxsystems.icmp.ping.handlers.PingRequest
public class PingRequest
Class contains data for passing ICMP request between application, ICMP Sender
and
ICMP Receiver
.
Constructor Summary | |
---|---|
PingRequest(java.net.InetAddress addressVal,
byte[] dataVal,
int dataLengthVal,
long timeoutVal,
int messageIdVal,
PingResponseHandler handlerVal)
Constructor initializes all class attributes. |
|
PingRequest(PingRequest request)
Copy constructor |
Method Summary | |
---|---|
int |
compareTo(PingRequest o)
Compares this object with the specified object for sorting. |
java.net.InetAddress |
getAddress()
Get ICMP request destination address |
long |
getCreationTime()
Get time when object was created. |
byte[] |
getData()
Get ICMP EchoRequest data that shall be send |
int |
getDataLength()
Get length of data to be sent. |
long |
getEndTime()
Get request due time (when request timeout occurs) |
PingResponseHandler |
getHandler()
Get result handler object that is executed when ICMP result is obtained |
int |
getMessageId()
Get identifier of message related to this request (see IcmpJniBridge API
for more information. |
long |
getSendTime()
Get time the request was handled by sender |
long |
getTimeout()
Get timeout attribute |
void |
updateSendTime()
Set time when request was handled (sent) by Sender |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PingRequest(java.net.InetAddress addressVal, byte[] dataVal, int dataLengthVal, long timeoutVal, int messageIdVal, PingResponseHandler handlerVal)
sendTime
(it is changed when object is passed between
Sender
and >code>Receiver.
addressVal
- address of host echo request is sent todataVal
- data to be sent (when null default data is used)dataLengthVal
- the length of data to be sent (its value cannot be bigger than data buffer length)timeoutVal
- send timeout in millisecondsmessageIdVal
- identifier of ICMP messagehandlerVal
- result handler objectpublic PingRequest(PingRequest request)
request
- source object to be copiedMethod Detail |
---|
public long getCreationTime()
public long getTimeout()
public java.net.InetAddress getAddress()
public byte[] getData()
public PingResponseHandler getHandler()
public long getEndTime()
public int getMessageId()
IcmpJniBridge
API
for more information.
public long getSendTime()
public void updateSendTime()
Sender
public int compareTo(PingRequest o)
compareTo
in interface java.lang.Comparable<PingRequest>
o
- object to be compared
public int getDataLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |