|
|||||||||||
| 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 instance
public 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 MBean
public 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 reason
public 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
MBeanException
public void setDescriptors(Descriptor[] inDescriptors)
throws MBeanException
setDescriptors in interface ModelMBeanInfoinDescriptors - 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 ModelMBeanInfodescr - 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 ModelMBeanInfoMBeanException
public ModelMBeanOperationInfo getOperation(String inName)
throws MBeanException
getOperation in interface ModelMBeanInfoMBeanException
public ModelMBeanConstructorInfo getConstructor(String inName)
throws MBeanException
MBeanException
public 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 MBeanInfo
public Descriptor getMBeanDescriptor()
throws MBeanException
getMBeanDescriptor in interface ModelMBeanInfoMBeanException
public void setMBeanDescriptor(Descriptor inMBeanDescriptor)
throws MBeanException
setMBeanDescriptor in interface ModelMBeanInfoMBeanException
public 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 | ||||||||||