| java.lang.Object org.objectweb.jonas.discovery.DiscMessage org.objectweb.jonas.discovery.DiscGreeting
DiscGreeting | public class DiscGreeting extends DiscMessage (Code) | | This class represents a special greeting message which has two uses:
1) To act as a broadcast to the domain that a new server with a given
server name has started. It also includes a port that the server will
listen to objections at, the domain name and state set to STARTUP.
2) To inform the newly started server that server name is already in use
by another server.
author: Vivek Lakshmanan version: 1.0 |
DiscGreeting | public DiscGreeting(String sourceAddress, int sourcePort)(Code) | | Parameters: sourceAddress - Parameters: sourcePort - |
DiscGreeting | public DiscGreeting(String sourceAddress, int sourcePort, String serverName, String domainName, boolean startingUp, String serverId)(Code) | | Constructor for a Discovery Greeting.
Parameters: sourceAddress - the host address to use to receive a response. Parameters: sourcePort - is the port used in the case of a point to point response. Parameters: serverName - is Jonas server name. Parameters: domainName - is Jonas domain name. Parameters: startingUp - is this server starting up or is it reporting back with anotification stating that it owns this server name? Parameters: serverId - TODO |
getDomainName | public String getDomainName()(Code) | | returns domain name.
domain name. |
getServerName | public String getServerName()(Code) | | returns server name.
serverName |
setDomainName | public void setDomainName(String domainName)(Code) | | sets the domain name.
Parameters: domainName - the management domain name |
setServerId | public void setServerId(String serverId)(Code) | | Set the serverId
Parameters: serverId - value of the serverId to set |
setServerName | public void setServerName(String serverName)(Code) | | sets the serverName
Parameters: serverName - the name of the server sending the discovery greeting |
setState | public void setState(String state)(Code) | | sets the server state : STARTINGUP or DUPLICATE_NAME.
Parameters: state - state of the server sending the discovery greeting, one of DiscGreeting.STARTUP or DiscGreeting.DUPLICATE_NAME |
toString | public String toString()(Code) | | The string version of the message
the message |
Fields inherited from org.objectweb.jonas.discovery.DiscMessage | final public static String DISCOVERY_PROTOCOL_VERSION(Code)(Java Doc)
|
|
|