|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines methods that should be implemented by a Dynamic MBean
| Method Summary | |
java.lang.Object |
getAttribute(java.lang.String attribute)
Returns the value of the given attribute. |
AttributeList |
getAttributes(java.lang.String[] attributes)
Returns an AttributeList given an array of attributes. |
MBeanInfo |
getMBeanInfo()
Provides the exposed attributes/actions of this DynamicMBean |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] arguments,
java.lang.String[] params)
Invoke the given method. |
void |
setAttribute(Attribute attribute)
Set the value of the specific attribute |
AttributeList |
setAttributes(AttributeList attributes)
Set the attribute using the given attribute as an AttributeList |
| Method Detail |
public MBeanInfo getMBeanInfo()
DynamicMBean
MBeanInfo
public java.lang.Object getAttribute(java.lang.String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
attribute - The attribute name for the value being retrieved.
AttributeNotFoundException - If the given attribute isn't found.
MBeanException - Wraps a java.lang.Exception
ReflectionException - Wraps a java.lang.Exception while trying
to invoke the getter.
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
attribute - The Attribute being set.
AttributeNotFoundException
InvalidAttributeValueException
MBeanException - Wraps a java.lang.Exception which is thrown
by the setter.
ReflectionExceptionpublic AttributeList getAttributes(java.lang.String[] attributes)
AttributeList given an array of attributes.
attributes - The array of attributes being retrieved
Attributepublic AttributeList setAttributes(AttributeList attributes)
AttributeList
attributes - The attribute being set.
Attribute successfully set.
public java.lang.Object invoke(java.lang.String method,
java.lang.Object[] arguments,
java.lang.String[] params)
throws MBeanException,
ReflectionException
method - The name of the method to be invoked.arguments - The array of arguments to be set.params - Contains the signature of the method to be invoked.
MBeanException - Wraps a java.lang.Exception
ReflectionException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||