| javax.management.DynamicMBean
DynamicMBean | public interface DynamicMBean (Code) | | Defines the methods that should be implemented by
a Dynamic MBean (MBean that exposes a dynamic management interface).
author: Young Yang |
Method Summary | |
public Object | getAttribute(String attribute) Obtains the value of a specific attribute of the Dynamic MBean. | public AttributeList | getAttributes(String[] attributes) Enables the values of several attributes of the Dynamic MBean.
Parameters: attributes - A list of the attributes to be retrieved. | public MBeanInfo | getMBeanInfo() Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object. | public Object | invoke(String actionName, Object params, String signature) Allows an action to be invoked on the Dynamic MBean.
Parameters: actionName - The name of the action to be invoked. Parameters: params - An array containing the parameters to be set when the action isinvoked. Parameters: signature - An array containing the signature of the action. | public void | setAttribute(Attribute attribute) | public AttributeList | setAttributes(AttributeList attributes) Sets the values of several attributes of the Dynamic MBean
Parameters: attributes - A list of attributes: The identification of theattributes to be set and the values they are to be set to. |
getAttributes | public AttributeList getAttributes(String[] attributes)(Code) | | Enables the values of several attributes of the Dynamic MBean.
Parameters: attributes - A list of the attributes to be retrieved. The list of attributes retrieved. |
getMBeanInfo | public MBeanInfo getMBeanInfo()(Code) | | Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.
An instance of MBeanInfo allowing all attributes and actionsexposed by this Dynamic MBean to be retrieved. |
invoke | public Object invoke(String actionName, Object params, String signature) throws MBeanException, ReflectionException(Code) | | Allows an action to be invoked on the Dynamic MBean.
Parameters: actionName - The name of the action to be invoked. Parameters: params - An array containing the parameters to be set when the action isinvoked. Parameters: signature - An array containing the signature of the action. The class objects willbe loaded through the same class loader as the one used for loading theMBean on which the action is invoked. The object returned by the action, which represents the result ofinvoking the action on the MBean specified. exception: MBeanException - Wraps a java.lang.Exception thrown by the MBean's invoked method. exception: ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the method |
setAttributes | public AttributeList setAttributes(AttributeList attributes)(Code) | | Sets the values of several attributes of the Dynamic MBean
Parameters: attributes - A list of attributes: The identification of theattributes to be set and the values they are to be set to. The list of attributes that were set, with their new values. |
|
|