public class FlyPinger
extends java.lang.Object
| Constructor and Description |
|---|
FlyPinger() |
FlyPinger(long pingTimeOut)
Construct a FlyPinger with a bespoke timeout
|
| Modifier and Type | Method and Description |
|---|---|
long |
getTimeout() |
java.lang.String[] |
ping(java.net.InetAddress addr)
Send a ping message to a Fly Space running on the given InetAddress and
port.
|
java.lang.String[] |
ping(java.lang.String host)
Send a ping message to a Fly Space running on the given Address
prefer the method that takes an InetAddress.
|
public FlyPinger()
public FlyPinger(long pingTimeOut)
pingTimeOut - in mspublic java.lang.String[] ping(java.lang.String host)
throws java.net.UnknownHostException
host - the host to pingjava.net.UnknownHostException - if the host cannont be foundpublic java.lang.String[] ping(java.net.InetAddress addr)
addr - the address to pingpublic long getTimeout()