|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.discovery.DiscoveryComm
Constructor Summary | |
DiscoveryComm(DiscoveryManager dm)
Constructs a DiscoveryComm associated to the DiscoveryManager |
Method Summary | |
DiscEvent |
createNotifMessage(java.lang.String state)
Create a discovery event to notify about a state change of the event sender |
void |
run()
|
void |
sendNotif(DiscEvent msg)
sends (multicasts) a DiscoveryEvent to the group. |
protected void |
setDomainName(java.lang.String domainName)
|
protected void |
setJonasName(java.lang.String jonasName)
|
protected void |
setUrls(java.lang.String[] urls)
|
void |
stop()
sends a notification message to notify that the server is stopping. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DiscoveryComm(DiscoveryManager dm)
dm
- DiscoveryManager to which this thread is associatedMethod Detail |
public void sendNotif(DiscEvent msg)
public DiscEvent createNotifMessage(java.lang.String state) throws java.lang.Exception
state
- - RUNNING if the sender notifies that it gets running
- STOPPING if the sender notifies that it stops running
java.lang.Exception
- is thrown if the jmx service is not reached.public void run()
run
in interface java.lang.Runnable
Runnable.run()
public void stop()
protected void setJonasName(java.lang.String jonasName)
jonasName
- The jonasName to set.protected void setDomainName(java.lang.String domainName)
protected void setUrls(java.lang.String[] urls)
urls
- The urls to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |