|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.ping.Pinger
public class Pinger
Pinger class.
| Constructor Summary | |
|---|---|
Pinger()
|
|
| Method Summary | |
|---|---|
static void |
initialize()
Initializes this singleton |
static List<Number> |
parallelPing(InetAddress host,
int count,
long timeout,
long pingInterval)
parallelPing |
static Long |
ping(InetAddress host)
Ping a remote host, using the default number of retries and timeouts. |
static Long |
ping(InetAddress host,
long timeout,
int retries)
This method is used to ping a remote host to test for ICMP support. |
static void |
ping(InetAddress host,
long timeout,
int retries,
short sequenceId,
PingResponseCallback cb)
ping |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pinger()
| Method Detail |
|---|
public static void initialize()
throws IOException
IOException - if any.
public static void ping(InetAddress host,
long timeout,
int retries,
short sequenceId,
PingResponseCallback cb)
throws Exception
ping
host - a InetAddress object.timeout - a long.retries - a int.sequenceId - a short.cb - a PingResponseCallback object.
Exception - if any.
public static Long ping(InetAddress host,
long timeout,
int retries)
throws Exception
host - The address to poll.timeout - The time to wait between each retry.retries - The number of times to retry
InterruptedException - if any.
IOException - if any.
Exception - if any.
public static Long ping(InetAddress host)
throws Exception
host - the host to ping
IOException - if any.
InterruptedException - if any.
Exception - if any.
public static List<Number> parallelPing(InetAddress host,
int count,
long timeout,
long pingInterval)
throws Exception
parallelPing
host - a InetAddress object.count - a int.timeout - a long.pingInterval - a long.
List object.
Exception - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||