Openwings API Documentation (v1.1)

net.openwings.availability
Interface Reachable


public interface Reachable

This class is used to encapsulate various methods for seeing if an IP address is reachable.


Field Summary
static int DEFAULT_TIMEOUT
           
 
Method Summary
 int getTimeout()
          This method is used to get the timeout duration.
 boolean isReachable(java.lang.String ipAddress)
          This method is used to determine if an IP address is reachable.
 void setTimeout(int timeoutInSeconds)
          This method is used to set the timeout duration.
 

Field Detail

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
See Also:
Constant Field Values
Method Detail

setTimeout

public void setTimeout(int timeoutInSeconds)
This method is used to set the timeout duration.

Parameters:
timeoutInSeconds - Timeout duration in seconds.

getTimeout

public int getTimeout()
This method is used to get the timeout duration.

Returns:
Returns the timeout duration in seconds.

isReachable

public boolean isReachable(java.lang.String ipAddress)
This method is used to determine if an IP address is reachable.

Parameters:
ipAddress - IP address as a host name or dot notation.
Returns:
boolean TRUE if the ip address was reached

Openwings API Documentation (v1.1)