org.objectweb.jonas.discovery
Class DiscoveryClientListener

java.lang.Object
  extended by org.objectweb.jonas.discovery.DiscoveryClientListener
All Implemented Interfaces:
java.lang.Runnable

public class DiscoveryClientListener
extends java.lang.Object
implements java.lang.Runnable

Version:
1.0
Author:
Takoua Abdellatif , Adriana Danes

Field Summary
static java.lang.String DISCOVERY_TYPE
          Management notification type for discovery events
 
Constructor Summary
DiscoveryClientListener(DiscoveryClient discoveryClient)
          Constructs a DiscoveryClientListener associated with a DiscoveryClient
 
Method Summary
protected  java.net.DatagramPacket getDatagram(int length)
           
 void run()
           
 void sendDiscoveryMessage(DiscMessage msg)
          Sends a discovery message to the server group.
 void stop()
          Stops the current thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISCOVERY_TYPE

public static final java.lang.String DISCOVERY_TYPE
Management notification type for discovery events

See Also:
Constant Field Values
Constructor Detail

DiscoveryClientListener

public DiscoveryClientListener(DiscoveryClient discoveryClient)
Constructs a DiscoveryClientListener associated with a DiscoveryClient

Parameters:
discoveryClient - DiscoveryClient to which this thread is associated
Method Detail

sendDiscoveryMessage

public void sendDiscoveryMessage(DiscMessage msg)
Sends a discovery message to the server group.


run

public void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

getDatagram

protected java.net.DatagramPacket getDatagram(int length)

stop

public void stop()
Stops the current thread