at.ac.tuwien.infosys.rnue.helpers.multicast
Class HostInfoMessageImpl

java.lang.Object
  |
  +--at.ac.tuwien.infosys.rnue.helpers.multicast.HostInfoMessageImpl
All Implemented Interfaces:
IHostInfoMessage, java.io.Serializable

public class HostInfoMessageImpl
extends java.lang.Object
implements IHostInfoMessage

This class provides the functionality to identify a given host.

See Also:
Serialized Form

Constructor Summary
HostInfoMessageImpl()
          Constructs an "empty" HostInfoMessage object.
 
Method Summary
 java.lang.String getHumanReadableName()
          Returns the human readable name of the peer identified by the IHostInfoMessage.
 java.lang.String getRegistryHost()
          Returns the name of the hostname of the peer identified by this IHostInfoMessage.
 int getRegistryPort()
          Returns the port of the registry of the peer identified by this IHostInfoMessage.
 java.lang.String getServiceName()
          Returns the service name (the part after the hostname of an RMI URL) of the peer identified by the IHostInfoMessage.
 void setHumanReadableName(java.lang.String name)
          Sets the human readable name of the peer identified by the IHostInfoMessage.
 void setRegistryHost(java.lang.String host)
          Sets the name of the hostname of the peer to be identified by this IHostInfoMessage.
 void setRegistryPort(int port)
          Sets the port of the registry of the peer identified by this IHostInfoMessage.
 void setServiceName(java.lang.String serviceName)
          Sets the service name (the part after the hostname of an RMI URL) of the peer identified by the IHostInfoMessage.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostInfoMessageImpl

public HostInfoMessageImpl()
Constructs an "empty" HostInfoMessage object.

Method Detail

getRegistryHost

public java.lang.String getRegistryHost()
Returns the name of the hostname of the peer identified by this IHostInfoMessage.

Specified by:
getRegistryHost in interface IHostInfoMessage
Returns:
hostname

setRegistryHost

public void setRegistryHost(java.lang.String host)
Sets the name of the hostname of the peer to be identified by this IHostInfoMessage.

Specified by:
setRegistryHost in interface IHostInfoMessage
Parameters:
host - the host's name.

getRegistryPort

public int getRegistryPort()
Returns the port of the registry of the peer identified by this IHostInfoMessage.

Specified by:
getRegistryPort in interface IHostInfoMessage
Returns:
port number

setRegistryPort

public void setRegistryPort(int port)
Sets the port of the registry of the peer identified by this IHostInfoMessage.

Specified by:
setRegistryPort in interface IHostInfoMessage
Parameters:
port - the port number.

getServiceName

public java.lang.String getServiceName()
Returns the service name (the part after the hostname of an RMI URL) of the peer identified by the IHostInfoMessage.

Specified by:
getServiceName in interface IHostInfoMessage
Returns:
service name

setServiceName

public void setServiceName(java.lang.String serviceName)
Sets the service name (the part after the hostname of an RMI URL) of the peer identified by the IHostInfoMessage.

Specified by:
setServiceName in interface IHostInfoMessage
Parameters:
serviceName - service name

getHumanReadableName

public java.lang.String getHumanReadableName()
Returns the human readable name of the peer identified by the IHostInfoMessage. This may be any name of your choice.

Specified by:
getHumanReadableName in interface IHostInfoMessage
Returns:
human readable name

setHumanReadableName

public void setHumanReadableName(java.lang.String name)
Sets the human readable name of the peer identified by the IHostInfoMessage. This may be any name of your choice.

Specified by:
setHumanReadableName in interface IHostInfoMessage
Parameters:
name - the human readable name