org.jppf.management
Class JPPFSystemInformation.HostIP

java.lang.Object
  extended by org.jppf.utils.Pair<String,String>
      extended by org.jppf.management.JPPFSystemInformation.HostIP
All Implemented Interfaces:
Serializable
Enclosing class:
JPPFSystemInformation

public static class JPPFSystemInformation.HostIP
extends Pair<String,String>

Instances of this class represent a hostname / ip address pair.

See Also:
Serialized Form

Constructor Summary
JPPFSystemInformation.HostIP(String first, String second)
          Initialize this HostIP object with the specified host name and IP addresse.
 
Method Summary
 String hostName()
          Get the host name.
 String ipAddress()
          Get the ip address.
 
Methods inherited from class org.jppf.utils.Pair
equals, first, hashCode, second
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPPFSystemInformation.HostIP

public JPPFSystemInformation.HostIP(String first,
                                    String second)
Initialize this HostIP object with the specified host name and IP addresse.

Parameters:
first - the host name.
second - the corresponnding IP address.
Method Detail

hostName

public String hostName()
Get the host name.

Returns:
the name as a string.

ipAddress

public String ipAddress()
Get the ip address.

Returns:
the ip address as a string.


Copyright © 2005-2010 JPPF Team.