com.ibm.lang.management
Class DynamicMXBeanImpl
- java.lang.Object
com.ibm.lang.management.DynamicMXBeanImpl
All implemented interfaces:
javax.management.DynamicMBean
Direct known subclasses:
ClassLoadingMXBeanImpl, CompilationMXBeanImpl, LoggingMXBeanImpl, MemoryManagerMXBeanImpl, MemoryMXBeanImpl, MemoryPoolMXBeanImpl, OperatingSystemMXBeanImpl, RuntimeMXBeanImpl, ThreadMXBeanImpl
- public abstract class DynamicMXBeanImpl
- extends java.lang.Object
- implements javax.management.DynamicMBean
Field Summary
Modifier and Type | Field and Description |
---|---|
|
info
|
Constructor Summary
Constructor and Description |
---|
DynamicMXBeanImpl()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getAttribute(java.lang.String attribute)
|
|
getAttributes(java.lang.String[] attributes)
|
|
getMBeanInfo()
|
|
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 .
|
|
getPresentOperation(java.lang.String actionName,java.lang.String[] signature)
Tests to see if this
DynamicMXBean has an operation with
the name actionName .
|
|
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)
|
|
invoke(java.lang.String actionName,java.lang.Object[] params,java.lang.String[] signature)
|
|
setAttribute(javax.management.Attribute attribute)
|
|
setAttributes(javax.management.AttributeList attributes)
|
|
setMBeanInfo(javax.management.MBeanInfo info)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
info
- protected javax.management.MBeanInfo info
Constructor Detail
DynamicMXBeanImpl
- public DynamicMXBeanImpl()
Method Detail
initMBeanInfo
- 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)
Parameters:
className
- TODO description
- TODO attributes
- constructors
- TODO operations
- TODO notifications
- TODO setMBeanInfo
- protected void setMBeanInfo(javax.management.MBeanInfo info)
Parameters:
info
- getAttributes
- public javax.management.AttributeList getAttributes( java.lang.String[] attributes)
Specified by:
getAttributes
in interface javax.management.DynamicMBean
setAttributes
- public javax.management.AttributeList setAttributes( javax.management.AttributeList attributes)
Specified by:
setAttributes
in interface javax.management.DynamicMBean
getMBeanInfo
- public javax.management.MBeanInfo getMBeanInfo( )
Specified by:
getMBeanInfo
in interface javax.management.DynamicMBean
getPresentAttribute
- protected javax.management.MBeanAttributeInfo getPresentAttribute( java.lang.String attributeName,
- com.ibm.lang.management.DynamicMXBeanImpl.AttributeAccessType access)
Parameters:
attributeName
- the name of the attribute being queried access
- an AttributeAccessType
indication of whether the
caller is looking for a readable or writable attribute. Returns:
if the named attribute exists and is readable or writable
(depending on what was specified in
access
, an
instance of MBeanAttributeInfo
that describes the
attribute, otherwise null
. getAttribute
- public java.lang.Object getAttribute( java.lang.String attribute)
- throws javax.management.AttributeNotFoundException
- javax.management.MBeanException
- javax.management.ReflectionException
Specified by:
getAttribute
in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
setAttribute
- public void setAttribute(javax.management.Attribute attribute)
- throws javax.management.AttributeNotFoundException
- javax.management.InvalidAttributeValueException
- javax.management.MBeanException
- javax.management.ReflectionException
Specified by:
setAttribute
in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
invoke
- public java.lang.Object invoke( java.lang.String actionName,
- java.lang.Object[] params,
- java.lang.String[] signature)
- throws javax.management.MBeanException
- javax.management.ReflectionException
Specified by:
invoke
in interface javax.management.DynamicMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException
getPresentOperation
- 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
. If the test is passed, the
MBeanOperationInfo
representing the operation is returned to the
caller.
Parameters:
actionName
- the name of a possible method on this
DynamicMXBean
signature
- the list of parameter types for the named operation in the
correct order Returns:
if the named operation exists, an instance of
MBeanOperationInfo
that describes the operation,
otherwise null
.
DynamicMXBean
has an attribute with the nameattributeName
. If the test is passed, theMBeanAttributeInfo
representing the attribute is returned.