org.ow2.jonas.discovery.internal.client
Class DiscoveryClientListener

java.lang.Object
  extended by org.ow2.jonas.discovery.internal.client.DiscoveryClientListener
All Implemented Interfaces:
Runnable

public class DiscoveryClientListener
extends Object
implements Runnable

Version:
1.0
Author:
Takoua Abdellatif , Adriana Danes

Field Summary
static String DISCOVERY_TYPE
          Management notification type for discovery events
 
Constructor Summary
DiscoveryClientListener(DiscoveryClient discoveryClient)
          Constructs a DiscoveryClientListener associated with a DiscoveryClient
 
Method Summary
protected  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 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 Runnable
See Also:
Runnable.run()

getDatagram

protected DatagramPacket getDatagram(int length)

stop

public void stop()
Stops the current thread



Copyright © 2010 OW2 Consortium. All Rights Reserved.