org.jboss.test.jmx.compliance.server.support
Class Dynamic

java.lang.Object
  extended byorg.jboss.test.jmx.compliance.server.support.Dynamic
All Implemented Interfaces:
javax.management.DynamicMBean

public class Dynamic
extends Object
implements javax.management.DynamicMBean

Version:
$Revision: 1.1 $
Author:
Adrian Brock.

Constructor Summary
Dynamic()
           
 
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 action, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dynamic

public Dynamic()
Method Detail

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.

invoke

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

Specified by:
invoke in interface javax.management.DynamicMBean
Parameters:
action - 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.

getAttribute

public Object getAttribute(String attribute)
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.

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.

setAttribute

public void setAttribute(javax.management.Attribute attribute)
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.
See Also:
Attribute

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.


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