|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.discovery.jgroups.comm.DiscCommManager
public class DiscCommManager
Assumes general communication in Master instances of JGroups discovery.
Constructor Summary | |
---|---|
DiscCommManager(String discoveryType)
The constructor. |
Method Summary | |
---|---|
void |
receiveGreetingMessage()
Waits until a duplicate server name is notified by the channel listener, or time out exceeds. |
void |
run()
|
void |
sendNotif(org.jgroups.Address dest,
DiscMessage msg)
sends (multicasts) a Discovery Message to the group. |
void |
start()
Start it. |
void |
stop()
Stop it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscCommManager(String discoveryType)
discoveryType
- Method Detail |
---|
public void run()
run
in interface Runnable
run
in interface DiscRunnable
public void stop()
DiscRunnable
stop
in interface DiscRunnable
public void start() throws StopDiscException
DiscRunnable
start
in interface DiscRunnable
StopDiscException
- Discovery must stop.public void receiveGreetingMessage() throws DuplicateServerNameException
DuplicateServerNameException
- Server is duplicated.public void sendNotif(org.jgroups.Address dest, DiscMessage msg)
msg
- The message to send.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |