Package org.jgroups.protocols
Interface FD_HOST.PingCommand
-
- All Known Implementing Classes:
FD_HOST.ExternalPingCommand
,FD_HOST.IsReachablePingCommand
- Enclosing class:
- FD_HOST
public static interface FD_HOST.PingCommand
Command used to check whether a given host is alive, periodically called
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isAlive(java.net.InetAddress host, long timeout)
Checks whether a given host is alive
-
-
-
Method Detail
-
isAlive
boolean isAlive(java.net.InetAddress host, long timeout) throws java.lang.Exception
Checks whether a given host is alive- 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
-
-