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 Object
- implements IJMXEnabled
Adapter turning introspection folder into IJMXEnabled component.
Only the root folder is adapted through this object.
- Author:
- Ik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FolderToIJMXEnabledAdapter
public FolderToIJMXEnabledAdapter(cz.cuni.amis.introspection.Folder folder)
enableJMX
public void enableJMX(MBeanServer mBeanServer,
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 ObjectName getFolderObjectNameForParent(ObjectName parent,
String folderName)
throws MalformedObjectNameException
- Throws:
MalformedObjectNameException
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.