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

    Modifier and Type
    Method
    Description
    boolean
    isAlive(InetAddress host, long timeout)
    Checks whether a given host is alive
  • Method Details

    • isAlive

      boolean isAlive(InetAddress host, long timeout) throws Exception
      Checks whether a given host is alive
      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