org.objectweb.jonas.jmx
Class JmxServiceImpl
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.jonas.jmx.AbsJmxServiceImpl
org.objectweb.jonas.jmx.JmxServiceImpl
- All Implemented Interfaces:
- JmxService, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean, Service
- public class JmxServiceImpl
- extends AbsJmxServiceImpl
JMX Service implementation. Provides specific doStart() and doStop () methods
to start /stop JOnAS JMX Service.
- Author:
- Adriana Danes.
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 |
JmxServiceImpl
public JmxServiceImpl()
getRmiConnectorName
public java.lang.String getRmiConnectorName()
- Returns:
- The JNDI name of the JOnAS RMI connector
doInit
public void doInit(javax.naming.Context ctx)
throws ServiceException
- Init the logger and then use super method.
- Overrides:
doInit
in class AbsJmxServiceImpl
- Parameters:
ctx
- configuration for the init method
- Throws:
ServiceException
- if initialization failed
doStart
public void doStart()
throws ServiceException
- Start the Service. Only need to create a RMI connector
- Specified by:
doStart
in class AbsJmxServiceImpl
- Throws:
ServiceException
- the service could not be started
doStop
public void doStop()
- Stop this service
- Specified by:
doStop
in class AbsJmxServiceImpl
getConnectorServerURLs
public javax.management.remote.JMXServiceURL[] getConnectorServerURLs()
- Specified by:
getConnectorServerURLs
in interface JmxService
- Specified by:
getConnectorServerURLs
in class AbsJmxServiceImpl
- Returns:
- The actual adresses on which listen the created connector servers
getProtocolFromJmxConnectorUrl
public static java.lang.String getProtocolFromJmxConnectorUrl(java.lang.String url)
- Extract the protocol from a JMX connector URL
- Parameters:
url
- JMX connector url to parse
- Returns:
- protocol associated with the url
getProviderUrlFromJmxConnectorUrl
public static java.lang.String getProviderUrlFromJmxConnectorUrl(java.lang.String url)
- Get the provider url from a JMX connector URL
- Parameters:
url
- JMX connector url to parse
- Returns:
- provider url associated with the url
getServerConnection
public javax.management.MBeanServerConnection getServerConnection(java.lang.String servername)
- Deprecated. Replaced by J2EEDomain.getConnection()
- Get the MBeanServerConnection for the named server.
Kept for backward compatibility (package org.allesta.wsabi.j2ee.provider.jonas)
- Returns:
- MBeanServerConnection