public abstract class DynamicMXBeanImpl
extends java.lang.Object
implements javax.management.DynamicMBean
Modifier and Type | Field and Description |
---|---|
protected javax.management.MBeanInfo |
info |
Constructor and Description |
---|
DynamicMXBeanImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String attribute) |
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes) |
javax.management.MBeanInfo |
getMBeanInfo() |
protected javax.management.MBeanAttributeInfo |
getPresentAttribute(java.lang.String attributeName,
com.ibm.lang.management.DynamicMXBeanImpl.AttributeAccessType access)
Tests to see if this
DynamicMXBean has an attribute with
the name attributeName . |
protected javax.management.MBeanOperationInfo |
getPresentOperation(java.lang.String actionName,
java.lang.String[] signature)
Tests to see if this
DynamicMXBean has an operation with
the name actionName . |
protected void |
initMBeanInfo(java.lang.String className,
java.lang.String description,
javax.management.MBeanAttributeInfo[] attributes,
javax.management.MBeanConstructorInfo[] constructors,
javax.management.MBeanOperationInfo[] operations,
javax.management.MBeanNotificationInfo[] notifications) |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature) |
void |
setAttribute(javax.management.Attribute attribute) |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes) |
protected void |
setMBeanInfo(javax.management.MBeanInfo info) |
protected void initMBeanInfo(java.lang.String className, java.lang.String description, javax.management.MBeanAttributeInfo[] attributes, javax.management.MBeanConstructorInfo[] constructors, javax.management.MBeanOperationInfo[] operations, javax.management.MBeanNotificationInfo[] notifications)
className
- TODOdescription
- TODOattributes
- constructors
- TODOoperations
- TODOnotifications
- TODOprotected void setMBeanInfo(javax.management.MBeanInfo info)
info
- public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
getAttributes
in interface javax.management.DynamicMBean
public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes
in interface javax.management.DynamicMBean
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean
protected javax.management.MBeanAttributeInfo getPresentAttribute(java.lang.String attributeName, com.ibm.lang.management.DynamicMXBeanImpl.AttributeAccessType access)
DynamicMXBean
has an attribute with
the name attributeName
. If the test is passed, the
MBeanAttributeInfo
representing the attribute is returned.attributeName
- the name of the attribute being queriedaccess
- an AttributeAccessType
indication of whether the
caller is looking for a readable or writable attribute.access
, an
instance of MBeanAttributeInfo
that describes the
attribute, otherwise null
.public java.lang.Object getAttribute(java.lang.String attribute) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public void setAttribute(javax.management.Attribute attribute) throws javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException
setAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
public java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.MBeanException, javax.management.ReflectionException
invoke
in interface javax.management.DynamicMBean
javax.management.MBeanException
javax.management.ReflectionException
protected javax.management.MBeanOperationInfo getPresentOperation(java.lang.String actionName, java.lang.String[] signature)
DynamicMXBean
has an operation with
the name actionName
. If the test is passed, the
MBeanOperationInfo
representing the operation is returned to the
caller.actionName
- the name of a possible method on this
DynamicMXBean
signature
- the list of parameter types for the named operation in the
correct orderMBeanOperationInfo
that describes the operation,
otherwise null
.