cz.cuni.amis.pogamut.base.utils.jmx
Class FolderToIJMXEnabledAdapter
java.lang.Object
cz.cuni.amis.pogamut.base.utils.jmx.FolderToIJMXEnabledAdapter
- All Implemented Interfaces:
- IJMXEnabled
public class FolderToIJMXEnabledAdapter
- extends java.lang.Object
- implements IJMXEnabled
Adapter turning introspection folder into IJMXEnabled component.
Only the root folder is adapted through this object.
Method Summary |
void |
enableJMX(javax.management.MBeanServer mBeanServer,
javax.management.ObjectName parent)
Method for starting the JMX extension of the class. |
static javax.management.ObjectName |
getFolderObjectNameForParent(javax.management.ObjectName parent,
java.lang.String folderName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FolderToIJMXEnabledAdapter
public FolderToIJMXEnabledAdapter(Folder folder)
enableJMX
public void enableJMX(javax.management.MBeanServer mBeanServer,
javax.management.ObjectName parent)
throws JMXAlreadyEnabledException,
CantStartJMXException
- Description copied from interface:
IJMXEnabled
- Method for starting the JMX extension of the class.
Object should register whatever objects it wants to expose via JMX.
- Specified by:
enableJMX
in interface IJMXEnabled
- Parameters:
mBeanServer
- server where the MBean of agent is registeredparent
- parent's ObjectName, should be used as base of name of
the registered MBean
- Throws:
JMXAlreadyEnabledException
CantStartJMXException
getFolderObjectNameForParent
public static javax.management.ObjectName getFolderObjectNameForParent(javax.management.ObjectName parent,
java.lang.String folderName)
throws javax.management.MalformedObjectNameException
- Throws:
javax.management.MalformedObjectNameException