org.almendra.commons.util.inet
Class RegistryLocation

java.lang.Object
  extended by org.almendra.commons.util.inet.RegistryLocation
All Implemented Interfaces:
java.io.Serializable

public class RegistryLocation
extends java.lang.Object
implements java.io.Serializable

Author:
Oliver
See Also:
Serialized Form

Field Summary
protected  java.lang.String hostName
           
protected  int port
           
 
Constructor Summary
RegistryLocation(int port)
          Creates a new RegistryLocation object.
RegistryLocation(java.lang.String hostName)
          Creates a new RegistryLocation object.
RegistryLocation(java.lang.String hostName, int port)
          Creates a new RegistryLocation object.
 
Method Summary
 java.lang.String getHostName()
           
 int getPort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostName

protected java.lang.String hostName

port

protected int port
Constructor Detail

RegistryLocation

public RegistryLocation(java.lang.String hostName)
Creates a new RegistryLocation object.


RegistryLocation

public RegistryLocation(int port)
Creates a new RegistryLocation object.


RegistryLocation

public RegistryLocation(java.lang.String hostName,
                        int port)
Creates a new RegistryLocation object.

Method Detail

getHostName

public java.lang.String getHostName()
Returns:
Returns the hostName.

getPort

public int getPort()
Returns:
Returns the port.