com.ibm.lang.management

Class DynamicMXBeanImpl

  1. java.lang.Object
  2. extended bycom.ibm.lang.management.DynamicMXBeanImpl
All implemented interfaces:
javax.management.DynamicMBean
Direct known subclasses:
ClassLoadingMXBeanImpl, CompilationMXBeanImpl, LoggingMXBeanImpl, MemoryManagerMXBeanImpl, MemoryMXBeanImpl, MemoryPoolMXBeanImpl, OperatingSystemMXBeanImpl, RuntimeMXBeanImpl, ThreadMXBeanImpl

  1. public abstract class DynamicMXBeanImpl
  2. extends java.lang.Object
  3. implements javax.management.DynamicMBean
TODO Type description

Field Summary

Modifier and Type Field and Description
  1. protected
  2. javax.management.MBeanInfo
info

Constructor Summary

Constructor and Description
DynamicMXBeanImpl()

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
getAttribute(java.lang.String attribute)
  1. javax.management.AttributeList
getAttributes(java.lang.String[] attributes)
  1. javax.management.MBeanInfo
getMBeanInfo()
  1. protected
  2. 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.
  1. protected
  2. 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.
  1. protected
  2. 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)
  1. java.lang.Object
invoke(java.lang.String actionName,java.lang.Object[] params,java.lang.String[] signature)
  1. void
setAttribute(javax.management.Attribute attribute)
  1. javax.management.AttributeList
setAttributes(javax.management.AttributeList attributes)
  1. protected
  2. void
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

  1. protected javax.management.MBeanInfo info

Constructor Detail

DynamicMXBeanImpl

  1. public DynamicMXBeanImpl()

Method Detail

initMBeanInfo

  1. protected void initMBeanInfo(java.lang.String className,
  2. java.lang.String description,
  3. javax.management.MBeanAttributeInfo[] attributes,
  4. javax.management.MBeanConstructorInfo[] constructors,
  5. javax.management.MBeanOperationInfo[] operations,
  6. javax.management.MBeanNotificationInfo[] notifications)
Parameters:
className - TODO
description - TODO
attributes -
constructors - TODO
operations - TODO
notifications - TODO

setMBeanInfo

  1. protected void setMBeanInfo(javax.management.MBeanInfo info)
Parameters:
info -

getAttributes

  1. public javax.management.AttributeList getAttributes( java.lang.String[] attributes)
Specified by:
getAttributes in interface javax.management.DynamicMBean

setAttributes

  1. public javax.management.AttributeList setAttributes( javax.management.AttributeList attributes)
Specified by:
setAttributes in interface javax.management.DynamicMBean

getMBeanInfo

  1. public javax.management.MBeanInfo getMBeanInfo( )
Specified by:
getMBeanInfo in interface javax.management.DynamicMBean

getPresentAttribute

  1. protected javax.management.MBeanAttributeInfo getPresentAttribute( java.lang.String attributeName,
  2. com.ibm.lang.management.DynamicMXBeanImpl.AttributeAccessType access)
Tests to see if this DynamicMXBean has an attribute with the name attributeName. If the test is passed, the MBeanAttributeInforepresenting the attribute is returned.
Parameters:
attributeName - the name of the attribute being queried
access - an AttributeAccessTypeindication 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

  1. public java.lang.Object getAttribute( java.lang.String attribute)
  2. throws javax.management.AttributeNotFoundException
  3. javax.management.MBeanException
  4. javax.management.ReflectionException
Specified by:
getAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

setAttribute

  1. public void setAttribute(javax.management.Attribute attribute)
  2. throws javax.management.AttributeNotFoundException
  3. javax.management.InvalidAttributeValueException
  4. javax.management.MBeanException
  5. 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

  1. public java.lang.Object invoke( java.lang.String actionName,
  2. java.lang.Object[] params,
  3. java.lang.String[] signature)
  4. throws javax.management.MBeanException
  5. javax.management.ReflectionException
Specified by:
invoke in interface javax.management.DynamicMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException

getPresentOperation

  1. protected javax.management.MBeanOperationInfo getPresentOperation( java.lang.String actionName,
  2. java.lang.String[] signature)
Tests to see if this DynamicMXBean has an operation with the name actionName. If the test is passed, the MBeanOperationInforepresenting 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.