javax.jmx.openmbean
Class OpenMBeanInfo

java.lang.Object
  |
  +--javax.management.MBeanInfo
        |
        +--javax.jmx.openmbean.OpenMBeanInfo

public class OpenMBeanInfo
extends MBeanInfo
implements java.io.Serializable

This class provides the main information structure for describing an open MBean.This class basically lists the attributes,operations, constructors and notifications of an open MBean.

See Also:
Serialized Form

Constructor Summary
OpenMBeanInfo(java.lang.String className, java.lang.String description, MBeanAttributeInfo[] attributes, MBeanConstructorInfo[] constructors, MBeanOperationInfo[] operations, MBeanNotificationInfo[] notifications)
          Constructs an OpenMBeanInfo with the parameters defining the attributes,constructors,operations and notifications for the 'open'MBean identified by the className and the description for the MBean.
 
Method Summary
 MBeanAttributeInfo[] getAttributes()
          Returns the list of attributes exposed for management.
 MBeanConstructorInfo[] getConstructors()
          Returns the list of the public constructors of the MBean.
 MBeanNotificationInfo[] getNotifications()
          Returns the list of the notifications emitted by the MBean.
 MBeanOperationInfo[] getOperations()
          Returns the list of operations of the MBean.
 
Methods inherited from class javax.management.MBeanInfo
clone, equals, getClassName, getDescription, hashCode, toString
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenMBeanInfo

public OpenMBeanInfo(java.lang.String className,
                     java.lang.String description,
                     MBeanAttributeInfo[] attributes,
                     MBeanConstructorInfo[] constructors,
                     MBeanOperationInfo[] operations,
                     MBeanNotificationInfo[] notifications)
              throws java.lang.Exception
Constructs an OpenMBeanInfo with the parameters defining the attributes,constructors,operations and notifications for the 'open'MBean identified by the className and the description for the MBean.
Parameters:
className - a fully qualified Java class name describing the MBean
description - description about the MBean
attributes - the array of attributes describing the MBean, note that the array elements should be an instance of OpenMBeanAttibuteInfo.
constructors - the array of constructors fot the MBean, note that the array elements should be an instance of OpenMBeanConstructorInfo.
operations - the array of operations describing the MBean, note that the array elements should be an instance of OpenMBeanOperationInfo
notifications - the array of notifications describing the MBean, note that the array elements should be an instance of OpenMBeanNotificationInfo
Method Detail

getConstructors

public MBeanConstructorInfo[] getConstructors()
Description copied from class: MBeanInfo

Returns the list of the public constructors of the MBean. Each constructor is described by an MBeanConstructorInfo object.

The returned array is a shallow copy of the internal array, which means that it is a copy of the internal array of references to the MBeanConstructorInfo objects but that each referenced MBeanConstructorInfo object is not copied.

The returned list is not necessarily exhaustive. That is, the MBean may have a public constructor that is not in the list. In this case, the MBean server can construct another instance of this MBean's class using that constructor, even though it is not listed here.

Overrides:
getConstructors in class MBeanInfo
Tags copied from class: MBeanInfo
Returns:
An array of MBeanConstructorInfo objects.

getNotifications

public MBeanNotificationInfo[] getNotifications()
Description copied from class: MBeanInfo
Returns the list of the notifications emitted by the MBean. Each notification is described by an MBeanNotificationInfo object. The returned array is a shallow copy of the internal array, which means that it is a copy of the internal array of references to the MBeanNotificationInfo objects but that each referenced MBeanNotificationInfo object is not copied.
Overrides:
getNotifications in class MBeanInfo
Tags copied from class: MBeanInfo
Returns:
An array of MBeanNotificationInfo objects.

getOperations

public MBeanOperationInfo[] getOperations()
Description copied from class: MBeanInfo
Returns the list of operations of the MBean. Each operation is described by an MBeanOperationInfo object. The returned array is a shallow copy of the internal array, which means that it is a copy of the internal array of references to the MBeanOperationInfo objects but that each referenced MBeanOperationInfo object is not copied.
Overrides:
getOperations in class MBeanInfo
Tags copied from class: MBeanInfo
Returns:
An array of MBeanOperationInfo objects.

getAttributes

public MBeanAttributeInfo[] getAttributes()
Description copied from class: MBeanInfo
Returns the list of attributes exposed for management. Each attribute is described by an MBeanAttributeInfo object. The returned array is a shallow copy of the internal array, which means that it is a copy of the internal array of references to the MBeanAttributeInfo objects but that each referenced MBeanAttributeInfo object is not copied.
Overrides:
getAttributes in class MBeanInfo
Tags copied from class: MBeanInfo
Returns:
An array of MBeanAttributeInfo objects.