|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.veraxsystems.icmp.ping.PingResult
public class PingResult
The class is a definition of results returned by synchronous version of Ping.echo
method.
Nested Class Summary | |
---|---|
static class |
PingResult.ResultType
Enum defines type of result |
Constructor Summary | |
---|---|
PingResult(java.net.InetAddress addressVal,
IcmpStatus statusVal,
PingResult.ResultType resultVal,
long sendTimeVal,
long responseTimeVal)
Class constructor. |
Method Summary | |
---|---|
java.net.InetAddress |
getAddress()
The PingResult is response to ICMP EchoRequest. |
long |
getResponseTime()
Get time of request processing. |
PingResult.ResultType |
getResult()
Get type of result content. |
IcmpStatus |
getStatus()
Get ICMP status. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PingResult(java.net.InetAddress addressVal, IcmpStatus statusVal, PingResult.ResultType resultVal, long sendTimeVal, long responseTimeVal)
addressVal
- the address of ICMP EchoRequest destination hoststatusVal
- status of ICMP responseresultVal
- type of resultsendTimeVal
- time when request echo was sentMethod Detail |
---|
public java.net.InetAddress getAddress()
PingResult
is response to ICMP EchoRequest.
This method get address of host the ICMP EchoRequest was sent to.
public long getResponseTime()
public PingResult.ResultType getResult()
public IcmpStatus getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |