|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.discovery.base.comm.DiscMessage org.ow2.jonas.discovery.base.comm.DiscEvent
public class DiscEvent
Field Summary |
---|
Fields inherited from class org.ow2.jonas.discovery.base.comm.DiscMessage |
---|
DISCOVERY_PROTOCOL_VERSION |
Constructor Summary | |
---|---|
DiscEvent(String sourceAddress,
int sourcePort,
String serverId)
Constructor. |
|
DiscEvent(String sourceAddress,
int sourcePort,
String serverName,
String domainName,
String serverId,
String[] connectorURLs)
Constructor for a Discovery Event. |
|
DiscEvent(String sourceAddress,
int sourcePort,
String serverName,
String domainName,
String serverId,
String[] connectorURLs,
boolean isMaster)
Constructor for a Discovery Event. |
Method Summary | |
---|---|
String[] |
getConnectorURL()
|
String |
getDomainName()
returns domain name. |
String |
getServerId()
Gets the server ID. |
String |
getServerName()
returns server name. |
String |
getState()
|
String[] |
getUrls()
|
boolean |
isDiscoveryMaster()
Checks if discovery is master. |
boolean |
isMaster()
|
void |
setConnectorURL(String[] connectorURLs)
|
void |
setDiscoveryMaster(boolean isDiscoveryMaster)
Discovery becomes master. |
void |
setDomainName(String domainName)
sets the domain name. |
void |
setServerId(String serverId)
Sets the server ID. |
void |
setServerName(String serverName)
sets the serverName. |
void |
setState(String state)
sets the server state : RUNNING or STOPPING. |
void |
setUrls(String[] urls)
Sets connector urls of discovery host. |
String |
toString()
The string version of the message. |
Methods inherited from class org.ow2.jonas.discovery.base.comm.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
- Discovery address.sourcePort
- Discovery port.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.public DiscEvent(String sourceAddress, int sourcePort, String serverName, String domainName, String serverId, String[] connectorURLs, boolean isMaster)
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.isMaster
- True id the discovery is masterMethod 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)
serverId
- Id of discovery Host.public String[] getUrls()
public void setUrls(String[] urls)
urls
- the urls to setpublic boolean isDiscoveryMaster()
public void setDiscoveryMaster(boolean isDiscoveryMaster)
isDiscoveryMaster
- the isDiscoveryMaster to setpublic boolean isMaster()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |