|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.MBeanInfo
javax.management.modelmbean.ModelMBeanInfoSupport
Support class for ModelMBeanInfo interface.
Revisions:
20020319 Juha Lindfors:
20020525 Juha Lindfors:
20020715 Adrian Brock:
ModelMBeanInfo
,
Serialized FormField Summary |
Fields inherited from class javax.management.MBeanInfo |
attributes, className, constructors, description, notifications, operations |
Constructor Summary | |
ModelMBeanInfoSupport(ModelMBeanInfo mbi)
Copy constructor for Model MBean info. |
|
ModelMBeanInfoSupport(String className,
String description,
ModelMBeanAttributeInfo[] attributes,
ModelMBeanConstructorInfo[] constructors,
ModelMBeanOperationInfo[] operations,
ModelMBeanNotificationInfo[] notifications)
Creates an instance of Model MBean info implementation based on the given values. |
|
ModelMBeanInfoSupport(String className,
String description,
ModelMBeanAttributeInfo[] attributes,
ModelMBeanConstructorInfo[] constructors,
ModelMBeanOperationInfo[] operations,
ModelMBeanNotificationInfo[] notifications,
Descriptor mbeandescriptor)
Creates an instance of Model MBean info implementation based on the given values and descriptor. |
Methods inherited from class javax.management.MBeanInfo |
equals, getClassName, getDescription, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.management.modelmbean.ModelMBeanInfo |
getClassName, getDescription |
Constructor Detail |
public ModelMBeanInfoSupport(ModelMBeanInfo mbi)
mbi
- Model MBean info used to initialize this instancepublic ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications)
className
- name of the Model MBean implementation classdescription
- human readable description string for this Model MBeanattributes
- an array of Model MBean attribute metadata to describe
the management attributes of this Model MBeanconstructors
- an array of Model MBean constructor metadata that
describes the constructors of this Model MBean
implementation classoperations
- an array of Model MBean operation metadata to describe
the management operations of this Model MBeannotifications
- an array of Model MBean notification metadata to
describe the management notifications of this
Model MBeanpublic ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications, Descriptor mbeandescriptor)
className
- name of the Model MBean implementation classdescription
- human readable description string for this Model MBeanattributes
- an array of Model MBean attribute metadata to describe
the management attributes of this Model MBeanconstructors
- an array of Model MBean constructor metadata that
describes the constructors of this Model MBean
implementation classoperations
- an array of Model MBean operation metadata to describe
the management operations of this Model MBeannotifications
- an array of Model MBean notification metadata to
describe the management notifications of this
Model MBeanMethod Detail |
public Descriptor[] getDescriptors(String descrType) throws MBeanException
-Using ALL_DESCRIPTORS returns descriptors for the MBean, and all its attributes, operations, notifications and constructors.MBEAN_DESCRIPTOR
-ATTRIBUTE_DESCRIPTOR
-OPERATION_DESCRIPTOR
-NOTIFICATION_DESCRIPTOR
-CONSTRUCTOR_DESCRIPTOR
-ALL_DESCRIPTORS
getDescriptors
in interface ModelMBeanInfo
descrType
- descriptor type string
MBeanException
- for no good reasonpublic Descriptor getDescriptor(String descrName, String descrType) throws MBeanException
-MBEAN_DESCRIPTOR
-ATTRIBUTE_DESCRIPTOR
-OPERATION_DESCRIPTOR
-NOTIFICATION_DESCRIPTOR
-CONSTRUCTOR_DESCRIPTOR
getDescriptor
in interface ModelMBeanInfo
descrName
- name of the descriptordescrType
- type of the descriptor
RuntimeOperationsException
- if an illegal descriptor type was given
MBeanException
public void setDescriptors(Descriptor[] inDescriptors) throws MBeanException
setDescriptors
in interface ModelMBeanInfo
inDescriptors
- array of descriptors
MBeanException
public void setDescriptor(Descriptor descr, String descrType) throws MBeanException
The descriptorType must contain one of the following values:
-MBEAN_DESCRIPTOR
-ATTRIBUTE_DESCRIPTOR
-OPERATION_DESCRIPTOR
-NOTIFICATION_DESCRIPTOR
-CONSTRUCTOR_DESCRIPTOR
setDescriptor
in interface ModelMBeanInfo
descr
- descriptor to setdescrType
- descriptor type string, can be null
RuntimeOperationsException
- if descr is null, or
descriptor is not valid.
MBeanException
public ModelMBeanAttributeInfo getAttribute(String inName) throws MBeanException
getAttribute
in interface ModelMBeanInfo
MBeanException
public ModelMBeanOperationInfo getOperation(String inName) throws MBeanException
getOperation
in interface ModelMBeanInfo
MBeanException
public ModelMBeanConstructorInfo getConstructor(String inName) throws MBeanException
MBeanException
public ModelMBeanNotificationInfo getNotification(String inName) throws MBeanException
getNotification
in interface ModelMBeanInfo
MBeanException
public MBeanAttributeInfo[] getAttributes()
getAttributes
in interface ModelMBeanInfo
getAttributes
in class MBeanInfo
public MBeanOperationInfo[] getOperations()
getOperations
in interface ModelMBeanInfo
getOperations
in class MBeanInfo
public MBeanConstructorInfo[] getConstructors()
getConstructors
in interface ModelMBeanInfo
getConstructors
in class MBeanInfo
public MBeanNotificationInfo[] getNotifications()
getNotifications
in interface ModelMBeanInfo
getNotifications
in class MBeanInfo
public Descriptor getMBeanDescriptor() throws MBeanException
getMBeanDescriptor
in interface ModelMBeanInfo
MBeanException
public void setMBeanDescriptor(Descriptor inMBeanDescriptor) throws MBeanException
setMBeanDescriptor
in interface ModelMBeanInfo
MBeanException
public Descriptor getDescriptor(String descrName) throws MBeanException
getDescriptor(String, String)
instead.
MBeanException
public Object clone()
clone
in interface ModelMBeanInfo
clone
in class MBeanInfo
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |