doInvoke
protected Object doInvoke(MBeanMetaData metadata,
String method,
String[] signature,
Object[] args)
throws javax.management.ReflectionException,
javax.management.MBeanException,
mx4j.server.ReflectionMBeanInvoker.BadArgumentException
getAttribute
public Object getAttribute(MBeanMetaData metadata,
String attribute)
throws javax.management.MBeanException,
javax.management.AttributeNotFoundException,
javax.management.ReflectionException
Returns the value of the specified attribute.
- getAttribute in interface MBeanInvoker
getMethodForAttribute
protected String getMethodForAttribute(javax.management.MBeanAttributeInfo attribute,
boolean forRead)
Returns the method name for the given attribute.
getStandardAttributeInfo
protected javax.management.MBeanAttributeInfo getStandardAttributeInfo(MBeanMetaData metadata,
String attribute,
boolean forWrite)
Returns the MBeanAttributeInfo for the given attribute, or null if the attribute
is not a management attribute.
getStandardManagementMethod
protected Method getStandardManagementMethod(MBeanMetaData metadata,
String name,
String[] signature)
throws javax.management.ReflectionException
Returns a java.lang.reflect.Method object for the given method name and signature.
getStandardOperationInfo
protected javax.management.MBeanOperationInfo getStandardOperationInfo(MBeanMetaData metadata,
String method,
String[] signature)
Returns the MBeanOperationInfo for the given operation, or null if the operation
is not a management operation.
invoke
public Object invoke(MBeanMetaData metadata,
String method,
String[] params,
Object[] args)
throws javax.management.MBeanException,
javax.management.ReflectionException
Invokes the specified operation on the MBean instance
- invoke in interface MBeanInvoker
invokeImpl
protected Object invokeImpl(MBeanMetaData metadata,
String method,
String[] signature,
Object[] args)
throws Throwable
setAttribute
public void setAttribute(MBeanMetaData metadata,
javax.management.Attribute attribute)
throws javax.management.MBeanException,
javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.ReflectionException
Sets the value of the specified attribute.
- setAttribute in interface MBeanInvoker