Class FD_HOST.ExternalPingCommand

java.lang.Object
org.jgroups.protocols.FD_HOST.ExternalPingCommand
All Implemented Interfaces:
FD_HOST.PingCommand
Enclosing class:
FD_HOST

protected static class FD_HOST.ExternalPingCommand extends Object implements FD_HOST.PingCommand
  • Field Details

    • cmd

      protected final String cmd
  • Constructor Details

    • ExternalPingCommand

      public ExternalPingCommand(String cmd)
  • Method Details

    • isAlive

      public boolean isAlive(InetAddress host, long timeout) throws Exception
      Description copied from interface: FD_HOST.PingCommand
      Checks whether a given host is alive
      Specified by:
      isAlive in interface FD_HOST.PingCommand
      Parameters:
      host - The host to be checked for liveness
      timeout - Number of milliseconds to wait for the check to complete
      Returns:
      true if the host is alive, else false
      Throws:
      Exception