com.continuent.tungsten.common.network
Interface PingMethod

All Known Implementing Classes:
InetAddressPing, OsUtilityPing

public interface PingMethod

Denotes a method for determining host reachability.

Author:
Robert Hodges

Method Summary
 java.lang.String getNotes()
          Return a string describing what this ping method did.
 boolean ping(HostAddress address, int timeout)
          Tests a host for reachability.
 

Method Detail

ping

boolean ping(HostAddress address,
             int timeout)
             throws HostException
Tests a host for reachability.

Parameters:
address - Host name
timeout - Timeout in milliseconds
Returns:
True if host is reachable, otherwise false.
Throws:
HostException

getNotes

java.lang.String getNotes()
Return a string describing what this ping method did. They should be set even if the ping method returns an exception.