Package org.infinispan.jmx
Class ResourceDMBean
java.lang.Object
org.infinispan.jmx.ResourceDMBean
- All Implemented Interfaces:
DynamicMBean
,MBeanRegistration
This class was copied from JGroups and adapted.
The original JGroup's ResourceDMBean logic has been modified so that invoke() method checks whether the operation
called has been exposed as a
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.- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com, Galder ZamarreƱo
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getAttribute
(String name) getAttributes
(String[] names) The ObjectName.int
hashCode()
void
void
postRegister
(Boolean registrationDone) void
preRegister
(MBeanServer server, ObjectName name) void
setAttribute
(Attribute attribute) setAttributes
(AttributeList list) toString()
-
Method Details
-
getObjectName
The ObjectName. Only available if the MBean was registered. -
getMBeanInfo
- Specified by:
getMBeanInfo
in interfaceDynamicMBean
-
getAttribute
- Specified by:
getAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
-
setAttribute
- Specified by:
setAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
-
getAttributes
- Specified by:
getAttributes
in interfaceDynamicMBean
-
setAttributes
- Specified by:
setAttributes
in interfaceDynamicMBean
-
invoke
- Specified by:
invoke
in interfaceDynamicMBean
- Throws:
MBeanException
-
preRegister
- Specified by:
preRegister
in interfaceMBeanRegistration
-
postRegister
- Specified by:
postRegister
in interfaceMBeanRegistration
-
preDeregister
public void preDeregister()- Specified by:
preDeregister
in interfaceMBeanRegistration
-
postDeregister
public void postDeregister()- Specified by:
postDeregister
in interfaceMBeanRegistration
-
equals
-
hashCode
public int hashCode() -
toString
-