org.objectweb.jonas.jmx.mx4j
Class Mx4jJmxServiceImpl

java.lang.Object
  extended byorg.objectweb.jonas.management.ReconfigDispatcher
      extended byorg.objectweb.jonas.service.AbsServiceImpl
          extended byorg.objectweb.jonas.jmx.AbsJmxServiceImpl
              extended byorg.objectweb.jonas.jmx.mx4j.Mx4jJmxServiceImpl
All Implemented Interfaces:
JmxService, javax.management.NotificationBroadcaster, ReconfigDispatcherMBean, Service

public class Mx4jJmxServiceImpl
extends AbsJmxServiceImpl

JMX Service implementation with mx4j. Provides the specific doStart() method.

Author:
Adriana Danes

Field Summary
 
Fields inherited from class org.objectweb.jonas.jmx.AbsJmxServiceImpl
CLASS, jmxServer, jonasName, logger
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
Mx4jJmxServiceImpl()
           
 
Method Summary
 void doStart()
          Start the Service.
 void doStop()
          Stop this service
 javax.management.MBeanServer getJmxServer()
           
 
Methods inherited from class org.objectweb.jonas.jmx.AbsJmxServiceImpl
doInit, releaseJmxServer
 
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl
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 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

Mx4jJmxServiceImpl

public Mx4jJmxServiceImpl()
Method Detail

doStart

public void doStart()
             throws ServiceException
Start the Service. Create the JRMP adapter MBean.

Specified by:
doStart in class AbsJmxServiceImpl
Throws:
ServiceException

doStop

public void doStop()
Stop this service

Specified by:
doStop in class AbsJmxServiceImpl

getJmxServer

public javax.management.MBeanServer getJmxServer()
Specified by:
getJmxServer in interface JmxService
Overrides:
getJmxServer in class AbsJmxServiceImpl
Returns:
The reference of the MBean server