|
||||||||||
| 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.reconfig.emitter.ReconfigEmitter
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.jonas.discovery.internal.DiscoveryServiceImpl
public class 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.reconfig.emitter.ReconfigEmitter |
|---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
|---|---|
DiscoveryServiceImpl()
|
|
| Method Summary | |
|---|---|
protected void |
doInit(Context ctx)
Initialize the discovery service. |
protected void |
doStart()
Start the discovery service |
protected void |
doStop()
Stop the discovery service |
DiscEvent |
getDiscEvent(String serverName,
String domainName,
String[] connectorURLs,
String state)
Create a 'fake' DiscEvent object containing info to establish a JMX connection with a new server in the domain |
String |
getDiscoveryProtocolVersion()
|
String |
getDiscoveryTtl()
|
Boolean |
getIsDiscoveryMaster()
|
String |
getMulticastAddress()
|
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.reconfig.emitter.ReconfigEmitter |
|---|
initLogger, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, 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 String getMulticastAddress()
getMulticastAddress in interface DiscoveryServiceImplMBeanpublic String getMulticastPort()
getMulticastPort in interface DiscoveryServiceImplMBeanpublic Boolean getIsDiscoveryMaster()
getIsDiscoveryMaster in interface DiscoveryServiceImplMBean
public void startDiscoveryMaster()
throws JMException
startDiscoveryMaster in interface DiscoveryServiceImplMBeanJMException - a JMX exception occured when trying to make current server a discovery master
protected void doInit(Context ctx)
throws org.objectweb.jonas.service.ServiceException
doInit in class org.objectweb.jonas.service.AbsServiceImplctx - context containing initialization parameters
org.objectweb.jonas.service.ServiceException - discovery service could not be correctly initialized
protected void doStart()
throws org.objectweb.jonas.service.ServiceException
doStart in class org.objectweb.jonas.service.AbsServiceImplorg.objectweb.jonas.service.ServiceException - An error occured when starting the service
protected void doStop()
throws org.objectweb.jonas.service.ServiceException
doStop in class org.objectweb.jonas.service.AbsServiceImplorg.objectweb.jonas.service.ServiceException
public DiscEvent getDiscEvent(String serverName,
String domainName,
String[] connectorURLs,
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 String getDiscoveryProtocolVersion()
getDiscoveryProtocolVersion in interface DiscoveryServiceImplMBeanpublic String getDiscoveryTtl()
getDiscoveryTtl in interface DiscoveryServiceImplMBeanDiscoveryServiceImplMBean.getDiscoveryTtl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||