public boolean ping(HostAddress address,int timeout) throws HostException {
  notes="InetAddress.isReachable()";
  InetAddress inetAddress=address.getInetAddress();
  try {
    return inetAddress.isReachable(timeout);
  }
 catch (  IOException e) {
    throw new HostException("Ping operation failed unexpectedly",e);
  }
}

public boolean ping ( HostAddress address , int timeout ) throws HostException { notes = "InetAddress.isReachable()" ; InetAddress inetAddress = address . getInetAddress ( ) ; try { return inetAddress . isReachable ( timeout ) ; } catch ( IOException e ) { throw new HostException ( "Ping operation failed unexpectedly" , e ) ; } }
tests a host for reachability .
