com.continuent.tungsten.common.network
Class HostAddress

java.lang.Object
  extended by com.continuent.tungsten.common.network.HostAddress

public class HostAddress
extends java.lang.Object

Provides a wrapper on the standard InetAddress that supports extended methods for determining host reachability.

Author:
Robert Hodges

Constructor Summary
HostAddress(java.net.InetAddress address)
          Create a new host address on a given InetAddress.
 
Method Summary
 boolean equals(java.lang.Object arg0)
          
 byte[] getAddress()
           
 java.lang.String getCanonicalHostName()
           
 java.lang.String getHostAddress()
           
 java.lang.String getHostName()
           
 java.net.InetAddress getInetAddress()
          Returns the InetAddress corresponding to this host name.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostAddress

public HostAddress(java.net.InetAddress address)
Create a new host address on a given InetAddress.

Parameters:
address - InetAddress to use
Method Detail

getInetAddress

public java.net.InetAddress getInetAddress()
Returns the InetAddress corresponding to this host name.


equals

public boolean equals(java.lang.Object arg0)

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getAddress

public byte[] getAddress()
See Also:
InetAddress.getAddress()

getCanonicalHostName

public java.lang.String getCanonicalHostName()
See Also:
InetAddress.getCanonicalHostName()

getHostAddress

public java.lang.String getHostAddress()
See Also:
InetAddress.getCanonicalHostName()

getHostName

public java.lang.String getHostName()

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()