public abstract class AbstractDynamicMBean extends Object implements DynamicMBean, MBeanRegistration
| Constructor and Description |
|---|
AbstractDynamicMBean() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getAppenderName(Appender appender)
Get MBean name.
|
AttributeList |
getAttributes(String[] attributeNames)
Enables the to get the values of several attributes of the Dynamic MBean.
|
protected abstract Logger |
getLogger() |
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister()
Performs cleanup for deregistering this MBean.
|
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
protected void |
registerMBean(Object mbean,
ObjectName objectName)
Registers MBean instance in the attached server.
|
AttributeList |
setAttributes(AttributeList attributes)
Sets the values of several attributes of the Dynamic MBean, and returns the
list of attributes that have been set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getMBeanInfo, invoke, setAttributeprotected static String getAppenderName(Appender appender)
appender - appender, may not be null.public AttributeList getAttributes(String[] attributeNames)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanprotected abstract Logger getLogger()
public void postDeregister()
postDeregister in interface MBeanRegistrationpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpublic ObjectName preRegister(MBeanServer server, ObjectName name)
preRegister in interface MBeanRegistrationprotected void registerMBean(Object mbean, ObjectName objectName) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
public void preDeregister()
registerMBean(Object mbean, ObjectName objectName).preDeregister in interface MBeanRegistrationCopyright © 2012 JBoss by Red Hat. All Rights Reserved.