javax.management
Interface DynamicMBean

All Known Subinterfaces:
ModelMBean sample code for javax.management.modelmbean.ModelMBean definition code for javax.management.modelmbean.ModelMBean
All Known Implementing Classes:
RequiredModelMBean sample code for javax.management.modelmbean.RequiredModelMBean definition code for javax.management.modelmbean.RequiredModelMBean , StandardMBean sample code for javax.management.StandardMBean definition code for javax.management.StandardMBean

public interface DynamicMBean

Defines the methods that should be implemented by a Dynamic MBean (MBean that exposes a dynamic management interface).

Since:
1.5

Method Summary
 Object sample code for java.lang.Object definition code for java.lang.Object getAttribute sample code for javax.management.DynamicMBean.getAttribute(java.lang.String) definition code for javax.management.DynamicMBean.getAttribute(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  attribute)
          Obtain the value of a specific attribute of the Dynamic MBean.
 AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList getAttributes sample code for javax.management.DynamicMBean.getAttributes(java.lang.String[]) definition code for javax.management.DynamicMBean.getAttributes(java.lang.String[]) (String sample code for java.lang.String definition code for java.lang.String [] attributes)
          Get the values of several attributes of the Dynamic MBean.
 MBeanInfo sample code for javax.management.MBeanInfo definition code for javax.management.MBeanInfo getMBeanInfo sample code for javax.management.DynamicMBean.getMBeanInfo() definition code for javax.management.DynamicMBean.getMBeanInfo() ()
          Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.
 Object sample code for java.lang.Object definition code for java.lang.Object invoke sample code for javax.management.DynamicMBean.invoke(java.lang.String, java.lang.Object[], java.lang.String[]) definition code for javax.management.DynamicMBean.invoke(java.lang.String, java.lang.Object[], java.lang.String[]) (String sample code for java.lang.String definition code for java.lang.String  actionName, Object sample code for java.lang.Object definition code for java.lang.Object [] params, String sample code for java.lang.String definition code for java.lang.String [] signature)
          Allows an action to be invoked on the Dynamic MBean.
 void setAttribute sample code for javax.management.DynamicMBean.setAttribute(javax.management.Attribute) definition code for javax.management.DynamicMBean.setAttribute(javax.management.Attribute) (Attribute sample code for javax.management.Attribute definition code for javax.management.Attribute  attribute)
          Set the value of a specific attribute of the Dynamic MBean.
 AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList setAttributes sample code for javax.management.DynamicMBean.setAttributes(javax.management.AttributeList) definition code for javax.management.DynamicMBean.setAttributes(javax.management.AttributeList) (AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  attributes)
          Sets the values of several attributes of the Dynamic MBean.
 

Method Detail

getAttribute sample code for javax.management.DynamicMBean.getAttribute(java.lang.String) definition code for javax.management.DynamicMBean.getAttribute(java.lang.String)

Object sample code for java.lang.Object definition code for java.lang.Object  getAttribute(String sample code for java.lang.String definition code for java.lang.String  attribute)
                    throws AttributeNotFoundException sample code for javax.management.AttributeNotFoundException definition code for javax.management.AttributeNotFoundException ,
                           MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                           ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException 
Obtain the value of a specific attribute of the Dynamic MBean.

Parameters:
attribute - The name of the attribute to be retrieved
Returns:
The value of the attribute retrieved.
Throws:
AttributeNotFoundException sample code for javax.management.AttributeNotFoundException definition code for javax.management.AttributeNotFoundException
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - Wraps a java.lang.Exception thrown by the MBean's getter.
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the getter.
See Also:
setAttribute(javax.management.Attribute) sample code for javax.management.DynamicMBean.setAttribute(javax.management.Attribute) definition code for javax.management.DynamicMBean.setAttribute(javax.management.Attribute)

setAttribute sample code for javax.management.DynamicMBean.setAttribute(javax.management.Attribute) definition code for javax.management.DynamicMBean.setAttribute(javax.management.Attribute)

void setAttribute(Attribute sample code for javax.management.Attribute definition code for javax.management.Attribute  attribute)
                  throws AttributeNotFoundException sample code for javax.management.AttributeNotFoundException definition code for javax.management.AttributeNotFoundException ,
                         InvalidAttributeValueException sample code for javax.management.InvalidAttributeValueException definition code for javax.management.InvalidAttributeValueException ,
                         MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                         ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException 
Set the value of a specific attribute of the Dynamic MBean.

Parameters:
attribute - The identification of the attribute to be set and the value it is to be set to.
Throws:
AttributeNotFoundException sample code for javax.management.AttributeNotFoundException definition code for javax.management.AttributeNotFoundException
InvalidAttributeValueException sample code for javax.management.InvalidAttributeValueException definition code for javax.management.InvalidAttributeValueException
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - Wraps a java.lang.Exception thrown by the MBean's setter.
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the MBean's setter.
See Also:
getAttribute(java.lang.String) sample code for javax.management.DynamicMBean.getAttribute(java.lang.String) definition code for javax.management.DynamicMBean.getAttribute(java.lang.String)

getAttributes sample code for javax.management.DynamicMBean.getAttributes(java.lang.String[]) definition code for javax.management.DynamicMBean.getAttributes(java.lang.String[])

AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  getAttributes(String sample code for java.lang.String definition code for java.lang.String [] attributes)
Get the values of several attributes of the Dynamic MBean.

Parameters:
attributes - A list of the attributes to be retrieved.
Returns:
The list of attributes retrieved.
See Also:
setAttributes(javax.management.AttributeList) sample code for javax.management.DynamicMBean.setAttributes(javax.management.AttributeList) definition code for javax.management.DynamicMBean.setAttributes(javax.management.AttributeList)

setAttributes sample code for javax.management.DynamicMBean.setAttributes(javax.management.AttributeList) definition code for javax.management.DynamicMBean.setAttributes(javax.management.AttributeList)

AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  setAttributes(AttributeList sample code for javax.management.AttributeList definition code for javax.management.AttributeList  attributes)
Sets the values of several attributes of the Dynamic MBean.

Parameters:
attributes - A list of attributes: The identification of the attributes to be set and the values they are to be set to.
Returns:
The list of attributes that were set, with their new values.
See Also:
getAttributes(java.lang.String[]) sample code for javax.management.DynamicMBean.getAttributes(java.lang.String[]) definition code for javax.management.DynamicMBean.getAttributes(java.lang.String[])

invoke sample code for javax.management.DynamicMBean.invoke(java.lang.String, java.lang.Object[], java.lang.String[]) definition code for javax.management.DynamicMBean.invoke(java.lang.String, java.lang.Object[], java.lang.String[])

Object sample code for java.lang.Object definition code for java.lang.Object  invoke(String sample code for java.lang.String definition code for java.lang.String  actionName,
              Object sample code for java.lang.Object definition code for java.lang.Object [] params,
              String sample code for java.lang.String definition code for java.lang.String [] signature)
              throws MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException ,
                     ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException 
Allows an action to be invoked on the Dynamic MBean.

Parameters:
actionName - The name of the action to be invoked.
params - An array containing the parameters to be set when the action is invoked.
signature - An 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.
Returns:
The object returned by the action, which represents the result of invoking the action on the MBean specified.
Throws:
MBeanException sample code for javax.management.MBeanException definition code for javax.management.MBeanException - Wraps a java.lang.Exception thrown by the MBean's invoked method.
ReflectionException sample code for javax.management.ReflectionException definition code for javax.management.ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the method

getMBeanInfo sample code for javax.management.DynamicMBean.getMBeanInfo() definition code for javax.management.DynamicMBean.getMBeanInfo()

MBeanInfo sample code for javax.management.MBeanInfo definition code for javax.management.MBeanInfo  getMBeanInfo()
Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.

Returns:
An instance of MBeanInfo allowing all attributes and actions exposed by this Dynamic MBean to be retrieved.