Defines the methods that should be implemented by a Dynamic MBean (MBean that exposes a dynamic management interface).
@since
1.5
Obtain the value of a specific attribute of the Dynamic MBean.
Parameters
attributeThe name of the attribute to be retrieved
Return
The value of the attribute retrieved.
Throws
AttributeNotFoundException
MBeanExceptionWraps a java.lang.Exception thrown by the MBean's getter.
ReflectionExceptionWraps a java.lang.Exception thrown while trying to invoke the getter.
See Also
Get the values of several attributes of the Dynamic MBean.
Parameters
attributesA list of the attributes to be retrieved.
Return
The list of attributes retrieved.
Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.
Return
An instance of MBeanInfo allowing all attributes and actions exposed by this Dynamic MBean to be retrieved.
Allows an action to be invoked on the Dynamic MBean.
Parameters
actionNameThe name of the action to be invoked.
paramsAn array containing the parameters to be set when the action is invoked.
signatureAn array containing the signature of the action. The class objects will be loaded through the same class loader as the one used for loading the MBean on which the action is invoked.
Return
The object returned by the action, which represents the result of invoking the action on the MBean specified.
Throws
MBeanExceptionWraps a java.lang.Exception thrown by the MBean's invoked method.
ReflectionExceptionWraps a java.lang.Exception thrown while trying to invoke the method
Set the value of a specific attribute of the Dynamic MBean.
Parameters
attributeThe identification of the attribute to be set and the value it is to be set to.
Throws
AttributeNotFoundException
InvalidAttributeValueException
MBeanExceptionWraps a java.lang.Exception thrown by the MBean's setter.
ReflectionExceptionWraps a java.lang.Exception thrown while trying to invoke the MBean's setter.
See Also
Sets the values of several attributes of the Dynamic MBean.
Parameters
attributesA list of attributes: The identification of the attributes to be set and the values they are to be set to.
Return
The list of attributes that were set, with their new values.