org.jboss.test.jmx.compliance.standard.support
Class DynamicDerived1

java.lang.Object
  extended byorg.jboss.test.jmx.compliance.standard.support.StandardParent
      extended byorg.jboss.test.jmx.compliance.standard.support.DynamicDerived1
All Implemented Interfaces:
javax.management.DynamicMBean, StandardParentMBean

public class DynamicDerived1
extends StandardParent
implements javax.management.DynamicMBean

implementing DynamicMBean means that we don't inherit the mbean info from StandardParentMBean


Constructor Summary
DynamicDerived1()
           
 
Method Summary
 Object getAttribute(String attribute)
          Returns the value of the attribute with the name matching the passed string.
 javax.management.AttributeList getAttributes(String[] attributes)
          Returns the values of the attributes with names matching the passed string array.
 javax.management.MBeanInfo getMBeanInfo()
          Returns the management interface that describes this dynamic resource.
 Object invoke(String actionName, Object[] params, String[] signature)
          Invokes a resource operation.
 void setAttribute(javax.management.Attribute attribute)
          Sets the value of an attribute.
 javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
          Sets the values of the attributes passed as an AttributeList of name and new value pairs.
 
Methods inherited from class org.jboss.test.jmx.compliance.standard.support.StandardParent
setAvailable, setParentValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicDerived1

public DynamicDerived1()
Method Detail

getAttribute

public Object getAttribute(String attribute)
                    throws javax.management.AttributeNotFoundException,
                           javax.management.MBeanException,
                           javax.management.ReflectionException
Description copied from interface: javax.management.DynamicMBean
Returns the value of the attribute with the name matching the passed string.

Specified by:
getAttribute in interface javax.management.DynamicMBean
Parameters:
attribute - the name of the attribute.
Returns:
the value of the attribute.
Throws:
javax.management.AttributeNotFoundException - when there is no such attribute.
javax.management.ReflectionException - wraps any error invoking the resource.
javax.management.MBeanException - wraps any error thrown by the resource when getting the attribute.

setAttribute

public void setAttribute(javax.management.Attribute attribute)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
Description copied from interface: javax.management.DynamicMBean
Sets the value of an attribute. The attribute and new value are passed in the name value pair Attribute.

Specified by:
setAttribute in interface javax.management.DynamicMBean
Parameters:
attribute - the name and new value of the attribute.
Throws:
javax.management.AttributeNotFoundException - when there is no such attribute.
javax.management.ReflectionException - wraps any error invoking the resource.
javax.management.InvalidAttributeValueException - when the new value cannot be converted to the type of the attribute.
javax.management.MBeanException - wraps any error thrown by the resource when setting the new value.
See Also:
Attribute

getAttributes

public javax.management.AttributeList getAttributes(String[] attributes)
Description copied from interface: javax.management.DynamicMBean
Returns the values of the attributes with names matching the passed string array.

Specified by:
getAttributes in interface javax.management.DynamicMBean
Parameters:
attributes - the names of the attribute.
Returns:
an AttributeList of name and value pairs.

setAttributes

public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
Description copied from interface: javax.management.DynamicMBean
Sets the values of the attributes passed as an AttributeList of name and new value pairs.

Specified by:
setAttributes in interface javax.management.DynamicMBean
Parameters:
attributes - the name an new value pairs.
Returns:
an AttributeList of name and value pairs that were actually set.

invoke

public Object invoke(String actionName,
                     Object[] params,
                     String[] signature)
              throws javax.management.MBeanException,
                     javax.management.ReflectionException
Description copied from interface: javax.management.DynamicMBean
Invokes a resource operation.

Specified by:
invoke in interface javax.management.DynamicMBean
Parameters:
actionName - the name of the operation to perform.
params - the parameters to pass to the operation.
signature - the signartures of the parameters.
Returns:
the result of the operation.
Throws:
javax.management.MBeanException - wraps any error thrown by the resource when performing the operation.
javax.management.ReflectionException - wraps any error invoking the resource.

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
Description copied from interface: javax.management.DynamicMBean
Returns the management interface that describes this dynamic resource. It is the responsibility of the implementation to make sure the description is accurate.

Specified by:
getMBeanInfo in interface javax.management.DynamicMBean
Returns:
the management interface.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.