|
|||||||||||
| 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 Form| Field 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 MBean| Method 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 ModelMBeanInfodescrType - 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 ModelMBeanInfodescrName - name of the descriptordescrType - type of the descriptor
RuntimeOperationsException - if an illegal descriptor type was given
MBeanExceptionpublic void setDescriptors(Descriptor[] inDescriptors) throws MBeanException
setDescriptors in interface ModelMBeanInfoinDescriptors - array of descriptors
MBeanExceptionpublic 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 ModelMBeanInfodescr - descriptor to setdescrType - descriptor type string, can be null
RuntimeOperationsException - if descr is null, or
descriptor is not valid.
MBeanExceptionpublic ModelMBeanAttributeInfo getAttribute(String inName) throws MBeanException
getAttribute in interface ModelMBeanInfoMBeanExceptionpublic ModelMBeanOperationInfo getOperation(String inName) throws MBeanException
getOperation in interface ModelMBeanInfoMBeanExceptionpublic ModelMBeanConstructorInfo getConstructor(String inName) throws MBeanException
MBeanExceptionpublic ModelMBeanNotificationInfo getNotification(String inName) throws MBeanException
getNotification in interface ModelMBeanInfoMBeanExceptionpublic MBeanAttributeInfo[] getAttributes()
getAttributes in interface ModelMBeanInfogetAttributes in class MBeanInfopublic MBeanOperationInfo[] getOperations()
getOperations in interface ModelMBeanInfogetOperations in class MBeanInfopublic MBeanConstructorInfo[] getConstructors()
getConstructors in interface ModelMBeanInfogetConstructors in class MBeanInfopublic MBeanNotificationInfo[] getNotifications()
getNotifications in interface ModelMBeanInfogetNotifications in class MBeanInfopublic Descriptor getMBeanDescriptor() throws MBeanException
getMBeanDescriptor in interface ModelMBeanInfoMBeanExceptionpublic void setMBeanDescriptor(Descriptor inMBeanDescriptor) throws MBeanException
setMBeanDescriptor in interface ModelMBeanInfoMBeanExceptionpublic Descriptor getDescriptor(String descrName) throws MBeanException
getDescriptor(String, String) instead.
MBeanExceptionpublic Object clone()
clone in interface ModelMBeanInfoclone in class MBeanInfo
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||