public abstract class AbstractManagedObject extends java.lang.Object implements ManagedObjectMXBean
Modifier | Constructor and Description |
---|---|
protected |
AbstractManagedObject() |
protected |
AbstractManagedObject(java.lang.ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
protected void |
addObjectNameProperties(java.util.Map<java.lang.String,java.lang.String> props) |
abstract java.lang.String |
getName()
The JMX name property of the mbean.
|
javax.management.ObjectName |
getObjectName()
Returns the
ObjectName of the mbean. |
java.lang.String |
getType()
The JMX type of this MBean, defaults to the prefix of the FooMXBean..
|
protected boolean |
registerSelf()
Registers the object with JMX.
|
java.lang.String |
toString() |
protected boolean |
unregisterSelf()
Unregisters the object with JMX.
|
protected AbstractManagedObject()
protected AbstractManagedObject(java.lang.ClassLoader loader)
public javax.management.ObjectName getObjectName()
ObjectName
of the mbean.getObjectName
in interface ManagedObjectMXBean
protected void addObjectNameProperties(java.util.Map<java.lang.String,java.lang.String> props) throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameException
public abstract java.lang.String getName()
getName
in interface ManagedObjectMXBean
public java.lang.String getType()
getType
in interface ManagedObjectMXBean
protected boolean registerSelf()
protected boolean unregisterSelf()
public java.lang.String toString()
toString
in class java.lang.Object