org.objectweb.jonas.jmx
Class AbsJmxServiceImpl
java.lang.Object
|
+--org.objectweb.jonas.service.AbsServiceImpl
|
+--org.objectweb.jonas.jmx.AbsJmxServiceImpl
- All Implemented Interfaces:
- JmxService, Service
- Direct Known Subclasses:
- JmxServiceImpl, Mx4jJmxServiceImpl
- public abstract class AbsJmxServiceImpl
- extends AbsServiceImpl
- implements JmxService
JMX Service implementation
This singleton class must exist in each jonas server that is to be administered via JMX
- Author:
- Guillaume Riviere
Contributor(s): Michel Bruno, Adriana Danes
Adriana Danes : implement new version of this service allowing to use mx4j.
highlight configuration properties
Field Summary |
static java.lang.String |
CLASS
|
protected javax.management.MBeanServer |
jmxServer
|
protected java.lang.String |
jonasName
|
protected static org.objectweb.util.monolog.api.Logger |
logger
|
Method Summary |
void |
doInit(javax.naming.Context ctx)
Init the Service.
|
abstract void |
doStart()
Start the Service
Initialization of the service is already done. |
abstract void |
doStop()
Stop this service |
javax.management.MBeanServer |
getJmxServer()
|
protected void |
releaseJmxServer()
Remove internal references to the MBeanServer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.objectweb.util.monolog.api.Logger logger
jonasName
protected java.lang.String jonasName
jmxServer
protected javax.management.MBeanServer jmxServer
CLASS
public static final java.lang.String CLASS
AbsJmxServiceImpl
public AbsJmxServiceImpl()
doInit
public void doInit(javax.naming.Context ctx)
throws ServiceException
- Init the Service.
Create the MBeanServer.
Configuration information is passed through a Context object.
- Overrides:
doInit
in class AbsServiceImpl
doStart
public abstract void doStart()
throws ServiceException
- Start the Service
Initialization of the service is already done.
- Overrides:
doStart
in class AbsServiceImpl
doStop
public abstract void doStop()
throws ServiceException
- Stop this service
- Overrides:
doStop
in class AbsServiceImpl
getJmxServer
public javax.management.MBeanServer getJmxServer()
- Specified by:
getJmxServer
in interface JmxService
- Returns:
- The reference of the MBean server
releaseJmxServer
protected void releaseJmxServer()
- Remove internal references to the MBeanServer.