org.objectweb.jonas.discovery.DiscoveryComm Class Reference

Collaboration diagram for org.objectweb.jonas.discovery.DiscoveryComm:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DiscoveryComm (DiscoveryManager dm)
void sendNotif (DiscEvent msg)
DiscEvent createNotifMessage (String state) throws Exception
void run ()
void stop ()

Protected Member Functions

void setJonasName (String jonasName)
void setDomainName (String domainName)
void setUrls (String[] urls)

Detailed Description

Author:
Takoua Abdellatif
Version:
1.0

Definition at line 45 of file DiscoveryComm.java.


Constructor & Destructor Documentation

org.objectweb.jonas.discovery.DiscoveryComm.DiscoveryComm DiscoveryManager  dm  ) 
 

Constructs a DiscoveryComm associated to the DiscoveryManager

Parameters:
dm DiscoveryManager to which this thread is associated

Definition at line 88 of file DiscoveryComm.java.

References org.objectweb.jonas.discovery.DiscoveryManager.getListeningIp(), org.objectweb.jonas.discovery.DiscoveryManager.getListeningPort(), org.objectweb.jonas.discovery.DiscoveryManager.getTimeToLive(), and org.objectweb.jonas.discovery.DiscoveryManager.ttl.

Here is the call graph for this function:


Member Function Documentation

DiscEvent org.objectweb.jonas.discovery.DiscoveryComm.createNotifMessage String  state  )  throws Exception
 

Create a discovery event to notify about a state change of the event sender

Parameters:
state 
  • RUNNING if the sender notifies that it gets running
  • STOPPING if the sender notifies that it stops running
Returns:
a Discovery event (notification)
Exceptions:
Exception is thrown if the jmx service is not reached.

Definition at line 171 of file DiscoveryComm.java.

References org.objectweb.jonas.discovery.DiscEvent.setState().

Referenced by org.objectweb.jonas.discovery.DiscoveryComm.run(), and org.objectweb.jonas.discovery.DiscoveryComm.stop().

Here is the call graph for this function:

void org.objectweb.jonas.discovery.DiscoveryComm.run  ) 
 

See also:
java.lang.Runnable#run()

Definition at line 195 of file DiscoveryComm.java.

References org.objectweb.jonas.discovery.DiscoveryComm.createNotifMessage(), org.objectweb.jonas.discovery.DiscMessage.getSourceAddress(), org.objectweb.jonas.discovery.DiscMessage.getSourcePort(), and org.objectweb.jonas.discovery.DiscoveryComm.sendNotif().

Here is the call graph for this function:

void org.objectweb.jonas.discovery.DiscoveryComm.sendNotif DiscEvent  msg  ) 
 

sends (multicasts) a DiscoveryEvent to the group.

Definition at line 124 of file DiscoveryComm.java.

Referenced by org.objectweb.jonas.discovery.DiscoveryComm.run(), and org.objectweb.jonas.discovery.DiscoveryComm.stop().

void org.objectweb.jonas.discovery.DiscoveryComm.setDomainName String  domainName  )  [protected]
 

Parameters:
domainNamle The domainNamle to set.

Definition at line 303 of file DiscoveryComm.java.

References org.objectweb.jonas.discovery.DiscEvent.domainName.

Referenced by org.objectweb.jonas.discovery.DiscoveryManager.start().

void org.objectweb.jonas.discovery.DiscoveryComm.setJonasName String  jonasName  )  [protected]
 

Parameters:
jonasName The jonasName to set.

Definition at line 297 of file DiscoveryComm.java.

Referenced by org.objectweb.jonas.discovery.DiscoveryManager.start().

void org.objectweb.jonas.discovery.DiscoveryComm.setUrls String[]  urls  )  [protected]
 

Parameters:
urls The urls to set.

Definition at line 309 of file DiscoveryComm.java.

References org.objectweb.jonas.discovery.DiscEvent.urls.

Referenced by org.objectweb.jonas.discovery.DiscoveryManager.start().

void org.objectweb.jonas.discovery.DiscoveryComm.stop  ) 
 

sends a notification message to notify that the server is stopping.

Definition at line 280 of file DiscoveryComm.java.

References org.objectweb.jonas.discovery.DiscoveryComm.createNotifMessage(), and org.objectweb.jonas.discovery.DiscoveryComm.sendNotif().

Referenced by org.objectweb.jonas.discovery.DiscoveryManager.handleNotification(), org.objectweb.jonas.discovery.DiscoveryManager.preDeregister(), and org.objectweb.jonas.discovery.DiscoveryManager.stop().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:06:49 2005 for JOnAS by  doxygen 1.3.9.1