|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.jonas.jmx.AbsJmxServiceImpl
public abstract class AbsJmxServiceImpl
JMX Service implementation. This singleton class must exist in each jonas server that is to be administered via JMX. Its main role is to initialize the service (the singleton object).
Field Summary |
---|
Fields inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
AbsJmxServiceImpl()
|
Method Summary | |
---|---|
void |
doInit(Context ctx)
Init the Service. |
abstract void |
doStart()
Start the Service Initialization of the service is already done. |
abstract void |
doStop()
Stop this service |
MBeanServer |
getJmxServer()
|
MBeanServerConnection |
getJmxServerConnection()
|
protected static org.objectweb.util.monolog.api.Logger |
getLogger()
|
void |
loadDescriptors(String packageName,
ClassLoader cl)
Load additional mbean descriptors. |
void |
registerMBean(Object mbean,
ObjectName objectName)
Register an MBean in the JOnAS MBeanServer |
void |
registerMBean(Object mbean,
String objectName)
Register an MBean in the JOnAS MBeanServer |
void |
registerModelMBean(Object mbean,
ObjectName objectName)
Register a Model MBean in the JOnAS MBeanServer. |
void |
registerModelMBean(Object mbean,
String objectName)
Register a Model MBean in the JOnAS MBeanServer. |
protected void |
releaseJmxServer()
Remove internal references to the MBeanServer. |
void |
unregisterMBean(ObjectName objectName)
Unregister an MBean from the JOnAS MBeanServer |
void |
unregisterModelMBean(ObjectName objectName)
Unegister a Model MBean from the JOnAS MBeanServer |
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 |
---|
getConnectorServerURLs, getDomainName, getJonasServerName |
Methods inherited from interface org.objectweb.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Constructor Detail |
---|
public AbsJmxServiceImpl()
Method Detail |
---|
protected static org.objectweb.util.monolog.api.Logger getLogger()
public void doInit(Context ctx) throws ServiceException
doInit
in class AbsServiceImpl
ctx
- context containing service initilaisation parameters
ServiceException
- the service could not be initializedpublic abstract void doStart() throws ServiceException
doStart
in class AbsServiceImpl
ServiceException
- the service could not be startedpublic abstract void doStop() throws ServiceException
doStop
in class AbsServiceImpl
ServiceException
- the service could not be stoppedpublic MBeanServer getJmxServer()
getJmxServer
in interface JmxService
public MBeanServerConnection getJmxServerConnection()
getJmxServerConnection
in interface JmxService
public void registerMBean(Object mbean, String objectName)
registerMBean
in interface JmxService
mbean
- MBean object to registerobjectName
- the String representation of the MBean's ObjectNamepublic void registerMBean(Object mbean, ObjectName objectName)
registerMBean
in interface JmxService
mbean
- MBean object to registerobjectName
- the MBean's ObjectNamepublic void unregisterMBean(ObjectName objectName)
unregisterMBean
in interface JmxService
objectName
- the MBean's ObjectNamepublic void registerModelMBean(Object mbean, ObjectName objectName) throws Exception
registerModelMBean
in interface JmxService
mbean
- MBean object to registerobjectName
- the Mbean ObjectName
Exception
- throwed when registering a modeler MBeanpublic void registerModelMBean(Object mbean, String objectName) throws Exception
registerModelMBean
in interface JmxService
mbean
- MBean object to registerobjectName
- the Mbean stringified ObjectName
Exception
- throwed when registering a modeler MBeanpublic void unregisterModelMBean(ObjectName objectName)
unregisterModelMBean
in interface JmxService
objectName
- the Mbean ObjectNameprotected void releaseJmxServer()
public void loadDescriptors(String packageName, ClassLoader cl)
loadDescriptors
in interface JmxService
packageName
- name of the package containing the descriptors filecl
- class loader containing the resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |