org.apache.qpid.server.management
Class DefaultManagedObject
java.lang.Object
javax.management.StandardMBean
org.apache.qpid.server.management.DefaultManagedObject
- All Implemented Interfaces:
- DynamicMBean, MBeanRegistration, ManagedObject
- Direct Known Subclasses:
- AMQManagedObject
public abstract class DefaultManagedObject
- extends StandardMBean
- implements ManagedObject
Provides implementation of the boilerplate ManagedObject interface. Most managed objects should find it useful
to extend this class rather than implementing ManagedObject from scratch.
Methods inherited from class javax.management.StandardMBean |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation |
DefaultManagedObject
protected DefaultManagedObject(Class<?> managementInterface,
String typeName)
throws NotCompliantMBeanException
- Throws:
NotCompliantMBeanException
getType
public String getType()
- Specified by:
getType
in interface ManagedObject
getManagementInterface
public Class<?> getManagementInterface()
- Specified by:
getManagementInterface
in interface ManagedObject
getParentObject
public ManagedObject getParentObject()
- Specified by:
getParentObject
in interface ManagedObject
register
public void register()
throws JMException
- Specified by:
register
in interface ManagedObject
- Throws:
JMException
getManagedObjectRegistry
protected ManagedObjectRegistry getManagedObjectRegistry()
unregister
public void unregister()
throws org.apache.qpid.AMQException
- Specified by:
unregister
in interface ManagedObject
- Throws:
org.apache.qpid.AMQException
toString
public String toString()
- Overrides:
toString
in class Object
getObjectName
public ObjectName getObjectName()
throws MalformedObjectNameException
- Created the ObjectName as per the JMX Specs
- Specified by:
getObjectName
in interface ManagedObject
- Returns:
- ObjectName
- Throws:
MalformedObjectNameException
getObjectNameForSingleInstanceMBean
protected ObjectName getObjectNameForSingleInstanceMBean()
throws MalformedObjectNameException
- Throws:
MalformedObjectNameException
getHierarchicalType
protected String getHierarchicalType(ManagedObject obj)
getHierarchicalName
protected String getHierarchicalName(ManagedObject obj)
jmxEncode
protected static StringBuffer jmxEncode(StringBuffer jmxName,
int attrPos)
Licensed to the Apache Software Foundation