|
||||||||||
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 DiscoveryServiceImplMBean
public String getMulticastPort()
getMulticastPort
in interface DiscoveryServiceImplMBean
public Boolean getIsDiscoveryMaster()
getIsDiscoveryMaster
in interface DiscoveryServiceImplMBean
public void startDiscoveryMaster() throws JMException
startDiscoveryMaster
in interface DiscoveryServiceImplMBean
JMException
- a JMX exception occured when trying to make current server a discovery masterprotected void doInit(Context ctx) throws ServiceException
doInit
in class AbsServiceImpl
ctx
- context containing initialization parameters
ServiceException
- discovery service could not be correctly initializedprotected void doStart() throws ServiceException
doStart
in class AbsServiceImpl
ServiceException
- An error occured when starting the serviceprotected void doStop() throws ServiceException
doStop
in class AbsServiceImpl
ServiceException
- service stopping failedpublic 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 DiscoveryServiceImplMBean
public String getDiscoveryTtl()
getDiscoveryTtl
in interface DiscoveryServiceImplMBean
DiscoveryServiceImplMBean.getDiscoveryTtl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |