Package org.jgroups.protocols
Class FD_HOST.IsReachablePingCommand
- java.lang.Object
-
- org.jgroups.protocols.FD_HOST.IsReachablePingCommand
-
- All Implemented Interfaces:
FD_HOST.PingCommand
- Enclosing class:
- FD_HOST
public static class FD_HOST.IsReachablePingCommand extends java.lang.Object implements FD_HOST.PingCommand
-
-
Constructor Summary
Constructors Constructor Description IsReachablePingCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAlive(java.net.InetAddress host, long timeout)
Checks whether a given host is alive
-
-
-
Method Detail
-
isAlive
public boolean isAlive(java.net.InetAddress host, long timeout) throws java.lang.Exception
Description copied from interface:FD_HOST.PingCommand
Checks whether a given host is alive- Specified by:
isAlive
in interfaceFD_HOST.PingCommand
- Parameters:
host
- The host to be checked for livenesstimeout
- Number of milliseconds to wait for the check to complete- Returns:
- true if the host is alive, else false
- Throws:
java.lang.Exception
-
-