javax.jmx.openmbean
Class OpenMBeanAttributeInfo
java.lang.Object
|
+--javax.management.MBeanFeatureInfo
|
+--javax.management.MBeanAttributeInfo
|
+--javax.jmx.openmbean.OpenMBeanAttributeInfo
- Direct Known Subclasses:
- CompositeAttributeInfo
- public class OpenMBeanAttributeInfo
- extends MBeanAttributeInfo
- implements java.io.Serializable
Describes management information of an open mbean's attribute.
- See Also:
- Serialized Form
|
Constructor Summary |
OpenMBeanAttributeInfo(java.lang.String name,
java.lang.String description,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter)
Constructs a OpenMBeanAttributeInfo object. |
OpenMBeanAttributeInfo(java.lang.String name,
java.lang.String type,
java.lang.String description,
boolean isReadable,
boolean isWritable,
boolean isIs)
Constructs a OpenMBeanAttributeInfo object. |
OpenMBeanAttributeInfo(java.lang.String name,
java.lang.String type,
java.lang.String description,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue,
java.lang.Object[] legalValues)
Constructs a OpenMBeanAttributeInfo object. |
|
Method Summary |
java.lang.Object |
getDefaultValue()
Getter for the default value of this attribute |
java.lang.Object[] |
getLegalValues()
Getter for the legal values of this attribute |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
OpenMBeanAttributeInfo
public OpenMBeanAttributeInfo(java.lang.String name,
java.lang.String type,
java.lang.String description,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue,
java.lang.Object[] legalValues)
- Constructs a OpenMBeanAttributeInfo object.
- Parameters:
name - The name of the attributetype - The type or class name of the attributedescription - A human readable description of the attribute.isReadable - specifies whether the attribute has read permission.isWritable - specifies whether the attribute has write permission.defaultValue - The default value for the attribute.legalValues - The set of permitted values for the attribute.
OpenMBeanAttributeInfo
public OpenMBeanAttributeInfo(java.lang.String name,
java.lang.String type,
java.lang.String description,
boolean isReadable,
boolean isWritable,
boolean isIs)
- Constructs a OpenMBeanAttributeInfo object.
- Parameters:
name - The name of the attributetype - The type or class name of the attributedescription - A human readable description of the attribute.isReadable - specifies whether the attribute has read permission.isWritable - specifies whether the attribute has write permission.
OpenMBeanAttributeInfo
public OpenMBeanAttributeInfo(java.lang.String name,
java.lang.String description,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter)
throws IntrospectionException
- Constructs a OpenMBeanAttributeInfo object.
- Parameters:
name - The name of the attributetype - The type or class name of the attributedescription - A human readable description of the attribute.getter - The method used for reading the attribute value. May be null if the propertyis - write-only.setter - The method used for writing the attribute value. May be null if the attribute isread-only. - - Throws:
- IntrospectionException - There is a consistency problem in the definition of this
attribute.
getDefaultValue
public java.lang.Object getDefaultValue()
- Getter for the default value of this attribute
- Returns:
- the default value object
getLegalValues
public java.lang.Object[] getLegalValues()
- Getter for the legal values of this attribute
- Returns:
- the legal values object array