|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Pinger
Pinger class.
| Method Summary | |
|---|---|
boolean |
isV4Available()
Whether or not IPv4 is initialized and available for this implementation. |
boolean |
isV6Available()
Whether or not IPv6 is initialized and available for this implementation. |
List<Number> |
parallelPing(InetAddress host,
int count,
long timeout,
long pingInterval)
Ping a remote host, sending 1 or more packets at the given interval, and then return the response times as a list. |
Number |
ping(InetAddress host)
Ping a remote host, using the default number of retries and timeouts. |
Number |
ping(InetAddress host,
long timeout,
int retries)
This method is used to ping a remote host to test for ICMP support. |
void |
ping(InetAddress host,
long timeout,
int retries,
int sequenceId,
PingResponseCallback cb)
This method is used to ping a remote host to test for ICMP support. |
| Method Detail |
|---|
void ping(InetAddress host,
long timeout,
int retries,
int sequenceId,
PingResponseCallback cb)
throws Exception
host - The InetAddress address to poll.timeout - The time to wait between each retry.retries - The number of times to retry.sequenceId - an ID representing the pingcb - the org.opennms.netmgt.ping.PingResponseCallback callback to call upon success or error
Exception
Number ping(InetAddress host,
long timeout,
int retries)
throws Exception
host - The InetAddress address to poll.timeout - The time to wait between each retry.retries - The number of times to retry.
Exception
Number ping(InetAddress host)
throws Exception
host - The InetAddress address to poll.
IOException - if any.
InterruptedException - if any.
Exception - if any.
List<Number> parallelPing(InetAddress host,
int count,
long timeout,
long pingInterval)
throws Exception
host - The InetAddress address to poll.count - The number of packets to send.timeout - The time to wait between each retry.pingInterval - The interval at which packets will be sent.
List of response times in microseconds.
If, for a given ping request, the host is reachable and has responded with an
echo reply, it will contain a number, otherwise a null value.
Exceptionboolean isV4Available()
boolean isV6Available()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||