public abstract class

AbstractDynamicMBean

extends Object
implements DynamicMBean MBeanRegistration
java.lang.Object
   ↳ org.apache.log4j.jmx.AbstractDynamicMBean
Known Direct Subclasses

Summary

Public Constructors
AbstractDynamicMBean()
Public Methods
AttributeList getAttributes(String[] attributeNames)
Enables the to get the values of several attributes of the Dynamic MBean.
void postDeregister()
void postRegister(Boolean registrationDone)
void preDeregister()
Performs cleanup for deregistering this MBean.
ObjectName preRegister(MBeanServer server, ObjectName name)
AttributeList setAttributes(AttributeList attributes)
Sets the values of several attributes of the Dynamic MBean, and returns the list of attributes that have been set.
Protected Methods
static String getAppenderName(Appender appender)
Get MBean name.
abstract Logger getLogger()
void registerMBean(Object mbean, ObjectName objectName)
Registers MBean instance in the attached server.
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.management.DynamicMBean
From interface javax.management.MBeanRegistration

Public Constructors

public AbstractDynamicMBean ()

Public Methods

public AttributeList getAttributes (String[] attributeNames)

Enables the to get the values of several attributes of the Dynamic MBean.

public void postDeregister ()

public void postRegister (Boolean registrationDone)

public void preDeregister ()

Performs cleanup for deregistering this MBean. Default implementation unregisters MBean instances which are registered using registerMBean(Object, ObjectName).

public ObjectName preRegister (MBeanServer server, ObjectName name)

public AttributeList setAttributes (AttributeList attributes)

Sets the values of several attributes of the Dynamic MBean, and returns the list of attributes that have been set.

Protected Methods

protected static String getAppenderName (Appender appender)

Get MBean name.

Parameters
appender appender, may not be null.
Returns
  • name.

protected abstract Logger getLogger ()

protected void registerMBean (Object mbean, ObjectName objectName)

Registers MBean instance in the attached server. Must NOT be called before registration of this instance.

Throws
InstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException