public abstract class AbstractDynamicMBean extends Object implements DynamicMBean, MBeanRegistration
Modifier and Type | Field and Description |
---|---|
(package private) String |
dClassName |
private Vector |
mbeanList |
(package private) MBeanServer |
server |
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, wait
getAttribute, getMBeanInfo, invoke, setAttribute
String dClassName
MBeanServer server
public AbstractDynamicMBean()
protected static String getAppenderName(Appender appender)
appender
- appender, may not be null.public AttributeList getAttributes(String[] attributeNames)
getAttributes
in interface DynamicMBean
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
public void postDeregister()
postDeregister
in interface MBeanRegistration
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public ObjectName preRegister(MBeanServer server, ObjectName name)
preRegister
in interface MBeanRegistration
protected void registerMBean(Object mbean, ObjectName objectName) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
public void preDeregister()
registerMBean(Object mbean, ObjectName objectName)
.preDeregister
in interface MBeanRegistration
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses