|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.discovery.DiscoveryComm org.objectweb.jonas.discovery.DiscoveryGreetingResponder org.objectweb.jonas.discovery.DiscoveryGreetingListener
public class DiscoveryGreetingListener
This class is the first thing started by the discovery manager when starting the discovery service. It listens to the multicast group for greeting messages from new servers and if the message received contains the same server ID as that of this instance more than once (one message from the same instance at first) this class sends a response to inform the new server that it violates uniqueness of the server ID.
Field Summary |
---|
Fields inherited from class org.objectweb.jonas.discovery.DiscoveryGreetingResponder |
---|
greetingPort, greetingTimeOut, recvUnicastSocket |
Fields inherited from class org.objectweb.jonas.discovery.DiscoveryComm |
---|
domainName, jonasName, multicastSocket, notStopped, RECEIVE_BUFFER_SIZE, serverId, unicastSocket, urls |
Constructor Summary | |
---|---|
DiscoveryGreetingListener(DiscoveryManager dm)
Constructs a DiscoveryGreetingListener associated to the DiscoveryManager |
Method Summary | |
---|---|
void |
run()
|
void |
stop()
Stop |
Methods inherited from class org.objectweb.jonas.discovery.DiscoveryGreetingResponder |
---|
createDiscGreeting, handleGreeting |
Methods inherited from class org.objectweb.jonas.discovery.DiscoveryComm |
---|
createNotifMessage, getDatagram, getServerId, join, sendNotif, sendResponse, setDomainName, setJonasName, setServerId, setUrls |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscoveryGreetingListener(DiscoveryManager dm)
dm
- DiscoveryManager to which this thread is associatedMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class DiscoveryGreetingResponder
Runnable.run()
public void stop()
stop
in class DiscoveryGreetingResponder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |