|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.discovery.internal.comm.message.DiscMessage
org.objectweb.jonas.discovery.internal.comm.message.DiscEvent
public class DiscEvent
Field Summary |
---|
Fields inherited from class org.objectweb.jonas.discovery.internal.comm.message.DiscMessage |
---|
DISCOVERY_PROTOCOL_VERSION |
Constructor Summary | |
---|---|
DiscEvent(String sourceAddress,
int sourcePort,
String serverId)
|
|
DiscEvent(String sourceAddress,
int sourcePort,
String serverName,
String domainName,
String serverId,
String[] connectorURLs)
Constructor for a Discovery Event. |
Method Summary | |
---|---|
String[] |
getConnectorURL()
|
String |
getDomainName()
returns domain name. |
String |
getServerId()
|
String |
getServerName()
returns server name. |
String |
getState()
|
void |
setConnectorURL(String[] connectorURLs)
|
void |
setDomainName(String domainName)
sets the domain name. |
void |
setServerId(String serverId)
|
void |
setServerName(String serverName)
sets the serverName. |
void |
setState(String state)
sets the server state : RUNNING or STOPPING. |
String |
toString()
The string version of the message. |
Methods inherited from class org.objectweb.jonas.discovery.internal.comm.message.DiscMessage |
---|
getSourceAddress, getSourcePort, getVersion, setSourceAddress, setSourcePort |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DiscEvent(String sourceAddress, int sourcePort, String serverId)
sourceAddress
- sourcePort
- serverId
- The serverId for this server.public DiscEvent(String sourceAddress, int sourcePort, String serverName, String domainName, String serverId, String[] connectorURLs)
sourceAddress
- the host address to use to receive a response.sourcePort
- is the port used in the case of a point to point response.serverName
- is Jonas server name.domainName
- is Jonas domain name.serverId
- TODOconnectorURLs
- contains the list of all connector urls registered in the mbean
server.Method Detail |
---|
public String getServerName()
getServerName
in interface DiscoveryEvent
public String getDomainName()
getDomainName
in interface DiscoveryEvent
public void setDomainName(String domainName)
domainName
- the management domain namepublic void setServerName(String serverName)
serverName
- the name of the server sending the discovery eventpublic String[] getConnectorURL()
getConnectorURL
in interface DiscoveryEvent
public void setConnectorURL(String[] connectorURLs)
connectorURLs
- the connector URLs of the server sending the discovery eventpublic String getState()
getState
in interface DiscoveryEvent
public void setState(String state)
state
- state of the server sending the discovery eventpublic String toString()
toString
in class DiscMessage
public String getServerId()
public void setServerId(String serverId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |