test.compliance.server.support
Class Dynamic

java.lang.Object
  extended bytest.compliance.server.support.Dynamic
All Implemented Interfaces:
DynamicMBean (src)

public class Dynamic
extends java.lang.Object
implements DynamicMBean (src)


Constructor Summary
Dynamic()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String attribute)
          Returns the value of the attribute with the name matching the passed string.
 AttributeList (src) getAttributes(java.lang.String[] attributes)
          Returns the values of the attributes with names matching the passed string array.
 MBeanInfo (src) getMBeanInfo()
          Returns the management interface that describes this dynamic resource.
 java.lang.Object invoke(java.lang.String action, java.lang.Object[] params, java.lang.String[] signature)
          Invokes a resource operation.
 void setAttribute(Attribute (src)  attribute)
          Sets the value of an attribute.
 AttributeList (src) setAttributes(AttributeList (src)  attributes)
          Sets the values of the attributes passed as an AttributeList (src) 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 MBeanInfo (src)  getMBeanInfo()
Description copied from interface: DynamicMBean (src)
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 DynamicMBean (src)
Returns:
the management interface.

invoke

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

Specified by:
invoke in interface DynamicMBean (src)
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 java.lang.Object getAttribute(java.lang.String attribute)
Description copied from interface: DynamicMBean (src)
Returns the value of the attribute with the name matching the passed string.

Specified by:
getAttribute in interface DynamicMBean (src)
Parameters:
attribute - the name of the attribute.
Returns:
the value of the attribute.

getAttributes

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

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

setAttribute

public void setAttribute(Attribute (src)  attribute)
Description copied from interface: DynamicMBean (src)
Sets the value of an attribute. The attribute and new value are passed in the name value pair Attribute (src) .

Specified by:
setAttribute in interface DynamicMBean (src)
Parameters:
attribute - the name and new value of the attribute.
See Also:
Attribute (src)

setAttributes

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

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