Class FD_HOST.ExternalPingCommand

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String cmd  
    • Constructor Summary

      Constructors 
      Constructor Description
      ExternalPingCommand​(java.lang.String cmd)  
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cmd

        protected final java.lang.String cmd
    • Constructor Detail

      • ExternalPingCommand

        public ExternalPingCommand​(java.lang.String cmd)
    • 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 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:
        java.lang.Exception