org.objectweb.jonas.jmx
Class JmxServiceImpl

java.lang.Object
  |
  +--org.objectweb.jonas.service.AbsServiceImpl
        |
        +--org.objectweb.jonas.jmx.JmxServiceImpl
All Implemented Interfaces:
JmxService, Service

public class JmxServiceImpl
extends AbsServiceImpl
implements JmxService

JMX Service implementation This singleton class must exist in each jonas server that want to use JMX

Author:
Guillaume Riviere Contributor(s): Michel Bruno

Constructor Summary
JmxServiceImpl()
           
 
Method Summary
 void doInit(javax.naming.Context ctx)
          Init the Service.
 void doStart()
          Start the Service Initialization of the service is already done.
 void doStop()
          Stop this service
 javax.management.MBeanServer getJmxServer()
           
 
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl
getName, init, isStarted, setName, start, stop
 
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

JmxServiceImpl

public JmxServiceImpl()
Method Detail

doInit

public void doInit(javax.naming.Context ctx)
            throws ServiceException
Init the Service. Configuration information is passed thru a Context object.
Overrides:
doInit in class AbsServiceImpl

doStart

public void doStart()
             throws ServiceException
Start the Service Initialization of the service is already done.
Overrides:
doStart in class AbsServiceImpl

doStop

public void doStop()
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