public final class ResourceDMBean extends Object implements DynamicMBean, MBeanRegistration
ManagedOperation, otherwise the call fails. JGroups deviated from this logic on
purpose because they liked the fact that you could expose all class methods by simply annotating class with MBean annotation.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
getAttribute(String name) |
AttributeList |
getAttributes(String[] names) |
MBeanInfo |
getMBeanInfo() |
ObjectName |
getObjectName()
The ObjectName.
|
int |
hashCode() |
Object |
invoke(String name,
Object[] args,
String[] sig) |
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList list) |
String |
toString() |
public ObjectName getObjectName()
public MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic Object getAttribute(String name) throws AttributeNotFoundException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, MBeanException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionpublic AttributeList getAttributes(String[] names)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList list)
setAttributes in interface DynamicMBeanpublic Object invoke(String name, Object[] args, String[] sig) throws MBeanException
invoke in interface DynamicMBeanMBeanExceptionpublic ObjectName preRegister(MBeanServer server, ObjectName name)
preRegister in interface MBeanRegistrationpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpublic void preDeregister()
preDeregister in interface MBeanRegistrationpublic void postDeregister()
postDeregister in interface MBeanRegistrationCopyright © 2022 JBoss by Red Hat. All rights reserved.