at.ac.tuwien.infosys.rnue.interfaces
Interface IHostInfoMessage

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
HostInfoMessageImpl

public interface IHostInfoMessage
extends java.io.Serializable

This interface provides the functionality to identify a given host.


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.
 

Method Detail

getRegistryHost

public java.lang.String getRegistryHost()
Returns the name of the hostname of the peer identified by this 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.

Parameters:
host - the host's name.

getRegistryPort

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

Returns:
port number

setRegistryPort

public void setRegistryPort(int port)
Sets the port of the registry of the peer identified by this 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.

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.

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.

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.

Parameters:
name - the human readable name