|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.MBeanInfo javax.management.modelmbean.ModelMBeanInfoSupport
Support class for ModelMBeanInfo interface.
ModelMBeanInfo
,
Serialized FormConstructor Summary | |
ModelMBeanInfoSupport(ModelMBeanInfo mbi)
Copy constructor for Model MBean info. |
|
ModelMBeanInfoSupport(String className,
String description,
ModelMBeanAttributeInfo[] modelAttributes,
ModelMBeanConstructorInfo[] modelConstructors,
ModelMBeanOperationInfo[] modelOperations,
ModelMBeanNotificationInfo[] modelNotifications)
Creates an instance of Model MBean info implementation based on the given values. |
|
ModelMBeanInfoSupport(String className,
String description,
ModelMBeanAttributeInfo[] modelAttributes,
ModelMBeanConstructorInfo[] modelConstructors,
ModelMBeanOperationInfo[] modelOperations,
ModelMBeanNotificationInfo[] modelNotifications,
Descriptor mbeandescriptor)
Creates an instance of Model MBean info implementation based on the given values and descriptor. |
Method Summary | |
Object |
clone()
|
ModelMBeanAttributeInfo |
getAttribute(String inName)
Returns the attribute info for the named attribute, or null if there is none. |
MBeanAttributeInfo[] |
getAttributes()
|
ModelMBeanConstructorInfo |
getConstructor(String inName)
Returns the constructor info for the named attribute, or null if there is none. |
MBeanConstructorInfo[] |
getConstructors()
|
Descriptor |
getDescriptor(String descrName)
Deprecated. use getDescriptor(String, String) instead. |
Descriptor |
getDescriptor(String descrName,
String descrType)
Returns a descriptor of a management interface element matching the given name and type. |
Descriptor[] |
getDescriptors(String descrType)
Returns the descriptors of an Model MBean for a given management interface element type. |
Descriptor |
getMBeanDescriptor()
|
ModelMBeanNotificationInfo |
getNotification(String inName)
Returns the attribute info for the named attribute, or null if there is none. |
MBeanNotificationInfo[] |
getNotifications()
|
ModelMBeanOperationInfo |
getOperation(String inName)
Returns the operation info for the named attribute, or null if there is none. |
MBeanOperationInfo[] |
getOperations()
|
void |
setDescriptor(Descriptor descr,
String descrType)
Adds or replaces the descriptor in this Model MBean. |
void |
setDescriptors(Descriptor[] inDescriptors)
Adds or replaces the descriptors in this Model MBean. |
void |
setMBeanDescriptor(Descriptor inDescriptor)
Sets the ModelMBean's 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[] modelAttributes, ModelMBeanConstructorInfo[] modelConstructors, ModelMBeanOperationInfo[] modelOperations, ModelMBeanNotificationInfo[] modelNotifications)
className
- name of the Model MBean implementation classdescription
- human readable description string for this Model MBeanmodelAttributes
- an array of Model MBean attribute metadata to describe
the management modelAttributes of this Model MBeanmodelConstructors
- an array of Model MBean constructor metadata that
describes the modelConstructors of this Model MBean
implementation classmodelOperations
- an array of Model MBean operation metadata to describe
the management modelOperations of this Model MBeanmodelNotifications
- an array of Model MBean notification metadata to
describe the management modelNotifications of this
Model MBeanpublic ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] modelAttributes, ModelMBeanConstructorInfo[] modelConstructors, ModelMBeanOperationInfo[] modelOperations, ModelMBeanNotificationInfo[] modelNotifications, Descriptor mbeandescriptor) throws RuntimeOperationsException
className
- name of the Model MBean implementation classdescription
- human readable description string for this Model MBeanmodelAttributes
- an array of Model MBean attribute metadata to describe
the management modelAttributes of this Model MBeanmodelConstructors
- an array of Model MBean constructor metadata that
describes the modelConstructors of this Model MBean
implementation classmodelOperations
- an array of Model MBean operation metadata to describe
the management modelOperations of this Model MBeanmodelNotifications
- an array of Model MBean notification metadata to
describe the management modelNotifications of this
Model MBeanmbeandescriptor
- descriptor for the MBeanMethod Detail |
public Descriptor[] getDescriptors(String descrType) throws MBeanException
-Using ALL_DESCRIPTORS returns descriptors for the MBean, and all its modelAttributes, modelOperations, modelNotifications and modelConstructors.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 inDescriptor) throws MBeanException, RuntimeOperationsException
setMBeanDescriptor
in interface ModelMBeanInfo
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 |