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 DynamicMBeanprotected abstract Logger getLogger()
public void postDeregister()
postDeregister in interface MBeanRegistrationpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpublic void preDeregister()
registerMBean(Object mbean, ObjectName objectName).preDeregister in interface MBeanRegistrationpublic ObjectName preRegister(MBeanServer server, ObjectName name)
preRegister in interface MBeanRegistrationprotected void registerMBean(Object mbean, ObjectName objectName) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
public AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.