|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.jonas.discovery.DiscoveryServiceImpl
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.
| Field Summary |
| Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
DiscoveryServiceImpl()
|
|
| Method Summary | |
protected void |
doInit(javax.naming.Context ctx)
Initialize the discovery service |
protected void |
doStart()
Start the discovery service |
protected void |
doStop()
Abstract method for service stopping to be implemented by sub-classes |
DiscEvent |
getDiscEvent(java.lang.String serverName,
java.lang.String domainName,
java.lang.String[] connectorURLs,
java.lang.String state)
Create a 'fake' DiscEvent object containing info to establish a JMX connection with a new server in the domain |
java.lang.String |
getDiscoveryProtocolVersion()
|
Enroller |
getEnroller()
|
java.lang.Boolean |
getIsDiscoveryMaster()
|
java.lang.String |
getMulticastAddress()
|
java.lang.String |
getMulticastPort()
|
void |
startDiscoveryMaster()
Management operation allowing to make the current server become a master if its not already. |
| Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop |
| Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
handleNotification, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.objectweb.jonas.service.Service |
getName, init, isStarted, setName, start, stop |
| Constructor Detail |
public DiscoveryServiceImpl()
| Method Detail |
public java.lang.String getMulticastAddress()
getMulticastAddress in interface DiscoveryServiceImplMBeanpublic java.lang.String getMulticastPort()
getMulticastPort in interface DiscoveryServiceImplMBeanpublic java.lang.Boolean getIsDiscoveryMaster()
getIsDiscoveryMaster in interface DiscoveryServiceImplMBean
public void startDiscoveryMaster()
throws javax.management.JMException
startDiscoveryMaster in interface DiscoveryServiceImplMBeanjavax.management.JMException - a JMX exception occured when trying to make current server a discovery master
protected void doInit(javax.naming.Context ctx)
throws ServiceException
doInit in class AbsServiceImplctx - context containing initialization parameters
discovery - service could not be correctly initialized
ServiceException - service initialization failed
protected void doStart()
throws ServiceException
doStart in class AbsServiceImplServiceException - An error occured when starting the service
protected void doStop()
throws ServiceException
AbsServiceImpl
doStop in class AbsServiceImplServiceException - service stopping failedpublic Enroller getEnroller()
public DiscEvent getDiscEvent(java.lang.String serverName,
java.lang.String domainName,
java.lang.String[] connectorURLs,
java.lang.String state)
serverName - the OBJECT_NAME of the server MBean corresponding to the server to connectdomainName - the JOnAS server's domain nameconnectorURLs - the urls of the connector server of the server to connectstate - the state of the server (RUNNING in case the DiscEvent is used to add a server; could be STOPPING
if the DiscEvent is used to remove a server)
public java.lang.String getDiscoveryProtocolVersion()
getDiscoveryProtocolVersion in interface DiscoveryServiceImplMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||