org.objectweb.jonas.discovery.DiscoveryServiceImpl Class Reference

Inherits org.objectweb.jonas.discovery.DiscoveryService, and org.objectweb.jonas.discovery.DiscoveryServiceImplMBean.

Inheritance diagram for org.objectweb.jonas.discovery.DiscoveryServiceImpl:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.discovery.DiscoveryServiceImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

String getMulticastAddress ()
String getMulticastPort ()
Boolean getIsDiscoveryMaster ()
void startDiscoveryMaster () throws JMException

Protected Member Functions

void doStart () throws ServiceException

Detailed Description

Author:
Adriana Danes
The discovery service creates and starts at least a DiscoveryManager which is a MBean that multicasts discovery information to all the servers who joined the discovery multicast group.

The discovery service may also create a Enroller and a DiscoveryClient, and in this case the current server becomes a discovery server.

Discovery information contains information allowing to remotely manage a server in the group.

Discovery multicast group is a group of servers which can be managed remotely by a discovery server.

Discovery server is the server in the group who detains the discovery information concerning all the servers in the group.

Definition at line 61 of file DiscoveryServiceImpl.java.


Member Function Documentation

void org.objectweb.jonas.discovery.DiscoveryServiceImpl.doStart  )  throws ServiceException [protected]
 

Start the discovery service

Exceptions:
ServiceException An error occured when starting the service

Definition at line 187 of file DiscoveryServiceImpl.java.

References org.objectweb.jonas.discovery.DiscoveryManager.setDomainName(), org.objectweb.jonas.discovery.DiscoveryManager.setJonasName(), org.objectweb.jonas.discovery.DiscoveryManager.setUrls(), and org.objectweb.jonas.discovery.DiscoveryManager.start().

Here is the call graph for this function:

Boolean org.objectweb.jonas.discovery.DiscoveryServiceImpl.getIsDiscoveryMaster  ) 
 

Returns:
true if the current server is a discovery server

Implements org.objectweb.jonas.discovery.DiscoveryServiceImplMBean.

Definition at line 102 of file DiscoveryServiceImpl.java.

String org.objectweb.jonas.discovery.DiscoveryServiceImpl.getMulticastAddress  ) 
 

Returns:
the multicast group IP address used by the discovery service

Implements org.objectweb.jonas.discovery.DiscoveryServiceImplMBean.

Definition at line 88 of file DiscoveryServiceImpl.java.

String org.objectweb.jonas.discovery.DiscoveryServiceImpl.getMulticastPort  ) 
 

Returns:
the multicast group port number used by the discovery service

Implements org.objectweb.jonas.discovery.DiscoveryServiceImplMBean.

Definition at line 95 of file DiscoveryServiceImpl.java.

void org.objectweb.jonas.discovery.DiscoveryServiceImpl.startDiscoveryMaster  )  throws JMException
 

Management operation allowing to make the current server become a master if its not already.

Exceptions:
JMException a JMX exception occured when trying to make current server a discovery master

Implements org.objectweb.jonas.discovery.DiscoveryServiceImplMBean.

Definition at line 110 of file DiscoveryServiceImpl.java.


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