|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.toolforge.core.util.net.Ping
The good old ping
command in Java. Probably a copy of what exists elsewhere, but since I would have
expect this one in the JDK ... Then, it took me 15 minutes to build this.
Method Summary | |
static boolean |
ping(java.lang.String host,
int port,
int timeOutInMillis)
Check if port port is reachable on host host within the next timeOutInMillis
milliseconds, or else the check failed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean ping(java.lang.String host, int port, int timeOutInMillis)
port
is reachable on host host
within the next timeOutInMillis
milliseconds, or else the check failed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |