|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.icmp.jna.JnaPinger
public class JnaPinger
Main
| Constructor Summary | |
|---|---|
JnaPinger()
|
|
| Method Summary | |
|---|---|
void |
initialize()
Initializes this singleton |
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)
parallelPing |
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)
ping |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JnaPinger()
| Method Detail |
|---|
public void initialize()
throws Exception
Exceptionpublic boolean isV4Available()
Pinger
isV4Available in interface Pingerpublic boolean isV6Available()
Pinger
isV6Available in interface Pinger
public void ping(InetAddress host,
long timeout,
int retries,
int sequenceId,
PingResponseCallback cb)
throws Exception
ping
ping in interface Pingerhost - a InetAddress object.timeout - a long.retries - a int.sequenceId - a short.cb - a org.opennms.netmgt.ping.PingResponseCallback object.
Exception - if any.
public Number ping(InetAddress host,
long timeout,
int retries)
throws Exception
ping in interface Pingerhost - 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 Number ping(InetAddress host)
throws Exception
ping in interface Pingerhost - the host to ping
IOException - if any.
InterruptedException - if any.
Exception - if any.
public List<Number> parallelPing(InetAddress host,
int count,
long timeout,
long pingInterval)
throws Exception
parallelPing
parallelPing in interface Pingerhost - 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 | |||||||||