org.objectweb.jonas.jmx
Class JmxServiceImpl

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
          extended by org.objectweb.jonas.service.AbsServiceImpl
              extended by org.objectweb.jonas.jmx.AbsJmxServiceImpl
                  extended by org.objectweb.jonas.jmx.JmxServiceImpl
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter, JmxService, Service

public class JmxServiceImpl
extends AbsJmxServiceImpl

JMX Service implementation. Provides specific doStart() and doStop () methods to start /stop JOnAS JMX Service.

Author:
Adriana Danes.

Field Summary
 
Fields inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
JmxServiceImpl()
           
 
Method Summary
 void doInit(Context ctx)
          Init the logger and then use super method.
 void doStart()
          Start the Service.
 void doStop()
          Stop this service
 JMXServiceURL[] getConnectorServerURLs()
           
 
Methods inherited from class org.objectweb.jonas.jmx.AbsJmxServiceImpl
getJmxServer, getJmxServerConnection, getLogger, loadDescriptors, registerMBean, registerMBean, registerModelMBean, registerModelMBean, releaseJmxServer, unregisterMBean, unregisterModelMBean
 
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.reconfig.emitter.ReconfigEmitter
initLogger, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, 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

JmxServiceImpl

public JmxServiceImpl()
Method Detail

doInit

public void doInit(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 JMXServiceURL[] getConnectorServerURLs()
Returns:
The actual adresses on which listen the created connector servers


Copyright © 2007 OW2 Consortium. All Rights Reserved.