|
||||||||||
| 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.jmx.AbsJmxServiceImpl
org.objectweb.jonas.jmx.JmxServiceImpl
JMX Service implementation. Provides specific doStart() and doStop () methods to start /stop JOnAS JMX Service.
| Field Summary |
| Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
JmxServiceImpl()
|
|
| Method Summary | |
boolean |
addServer(java.lang.String domainName,
java.lang.String serverName,
java.lang.String connectorServerURL)
Add a JOnAS server in the management domain in order update the management domain configuration. |
void |
doInit(javax.naming.Context ctx)
Init the logger and then use super method. |
void |
doStart()
Start the Service. |
void |
doStop()
Stop this service |
javax.management.remote.JMXServiceURL[] |
getConnectorServerURLs()
|
java.lang.String |
getRmiConnectorName()
|
javax.management.MBeanServerConnection |
getServerConnection(java.lang.String serverName)
Return a connection to the JMX serverver of a given JOnAS server |
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
Treat REGISTRATION/UNREGISTRATION MBeanServerNotification generated for "management" MBeans Treat also notifications generated by Enroller MBean |
void |
removeServer(java.lang.String domainName,
java.lang.String serverName)
Add a JOnAS server in the management domain |
| Methods inherited from class org.objectweb.jonas.jmx.AbsJmxServiceImpl |
getJmxServer, getLogger, releaseJmxServer |
| 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.jmx.JmxService |
getDomainName, getJonasServerName |
| Methods inherited from interface org.objectweb.jonas.service.Service |
getName, init, isStarted, setName, start, stop |
| Constructor Detail |
public JmxServiceImpl()
| Method Detail |
public java.lang.String getRmiConnectorName()
getRmiConnectorName in interface JmxService
public void doInit(javax.naming.Context ctx)
throws ServiceException
doInit in class AbsJmxServiceImplctx - configuration for the init method
ServiceException - if initialization failed
public void doStart()
throws ServiceException
doStart in class AbsJmxServiceImplServiceException - the service could not be startedpublic void doStop()
doStop in class AbsJmxServiceImplpublic javax.management.remote.JMXServiceURL[] getConnectorServerURLs()
getConnectorServerURLs in interface JmxServicegetConnectorServerURLs in class AbsJmxServiceImpl
public void handleNotification(javax.management.Notification notification,
java.lang.Object handback)
handleNotification in interface javax.management.NotificationListenernotification - received notificationhandback - received handback
public boolean addServer(java.lang.String domainName,
java.lang.String serverName,
java.lang.String connectorServerURL)
domainName - name of the management domain the server belongs toserverName - server nameconnectorServerURL - connector server url
public void removeServer(java.lang.String domainName,
java.lang.String serverName)
domainName - name of the management domain the server belongsserverName - server namepublic javax.management.MBeanServerConnection getServerConnection(java.lang.String serverName)
getServerConnection in interface JmxServiceserverName - The name of the server a connection to its JMX server its needed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||