org.ow2.jonas.discovery.internal.comm
Class DiscoveryGreetingListener
java.lang.Object
org.ow2.jonas.discovery.internal.comm.DiscoveryComm
org.ow2.jonas.discovery.internal.comm.DiscoveryGreetingResponder
org.ow2.jonas.discovery.internal.comm.DiscoveryGreetingListener
- All Implemented Interfaces:
- Runnable
public class DiscoveryGreetingListener
- extends DiscoveryGreetingResponder
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.
- Version:
- 1.0
- Author:
- Vivek Lakshmanan
Method Summary |
void |
run()
|
void |
stop()
Stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoveryGreetingListener
public DiscoveryGreetingListener(DiscoveryManager dm)
- Constructs a DiscoveryGreetingListener associated to the DiscoveryManager
- Parameters:
dm
- DiscoveryManager to which this thread is associated
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class DiscoveryGreetingResponder
- See Also:
Runnable.run()
stop
public void stop()
- Stop
- Overrides:
stop
in class DiscoveryGreetingResponder
Copyright © 2010 OW2 Consortium. All Rights Reserved.