public abstract class AbstractDynamicMBean
extends java.lang.Object
implements javax.management.DynamicMBean, javax.management.MBeanRegistration
构造器和说明 |
---|
AbstractDynamicMBean() |
限定符和类型 | 方法和说明 |
---|---|
protected static java.lang.String |
getAppenderName(Appender appender)
Get MBean name.
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributeNames)
Enables the to get the values of several attributes of the Dynamic MBean.
|
protected abstract Logger |
getLogger() |
void |
postDeregister() |
void |
postRegister(java.lang.Boolean registrationDone) |
void |
preDeregister()
Performs cleanup for deregistering this MBean.
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name) |
protected void |
registerMBean(java.lang.Object mbean,
javax.management.ObjectName objectName)
Registers MBean instance in the attached server.
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes)
Sets the values of several attributes of the Dynamic MBean, and returns the
list of attributes that have been set.
|
protected static java.lang.String getAppenderName(Appender appender)
appender
- appender, may not be null.public javax.management.AttributeList getAttributes(java.lang.String[] attributeNames)
getAttributes
在接口中 javax.management.DynamicMBean
public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes
在接口中 javax.management.DynamicMBean
protected abstract Logger getLogger()
public void postDeregister()
postDeregister
在接口中 javax.management.MBeanRegistration
public void postRegister(java.lang.Boolean registrationDone)
postRegister
在接口中 javax.management.MBeanRegistration
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
preRegister
在接口中 javax.management.MBeanRegistration
protected void registerMBean(java.lang.Object mbean, javax.management.ObjectName objectName) throws javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.NotCompliantMBeanException
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.NotCompliantMBeanException
public void preDeregister()
registerMBean(Object mbean, ObjectName objectName)
.preDeregister
在接口中 javax.management.MBeanRegistration