|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.MBeanFeatureInfo javax.management.MBeanAttributeInfo javax.management.openmbean.OpenMBeanAttributeInfoSupport
OpenMBeanAttributeInfo implementation
Field Summary |
Fields inherited from class javax.management.MBeanFeatureInfo |
description, name |
Constructor Summary | |
OpenMBeanAttributeInfoSupport(String name,
String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs)
Contruct an OpenMBeanAttributeInfoSupport |
|
OpenMBeanAttributeInfoSupport(String name,
String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
Object defaultValue)
Contruct an OpenMBeanAttributeInfoSupport |
|
OpenMBeanAttributeInfoSupport(String name,
String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
Object defaultValue,
Comparable minValue,
Comparable maxValue)
Contruct an OpenMBeanAttributeInfoSupport |
|
OpenMBeanAttributeInfoSupport(String name,
String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
Object defaultValue,
Object[] legalValues)
Contruct an OpenMBeanAttributeInfoSupport |
Method Summary | |
boolean |
equals(Object obj)
Compares an object for equality with the implementing class. |
Object |
getDefaultValue()
Retrieve the default value for this parameter or null if there is no default |
Set |
getLegalValues()
Retrieve the legal values values for this parameter or null if this is not specified |
Comparable |
getMaxValue()
Retrieve the maximum values values for this parameter or null if this is not specified |
Comparable |
getMinValue()
Retrieve the minimum values values for this parameter or null if this is not specified |
OpenType |
getOpenType()
Retrieve the open type for this parameter |
boolean |
hasDefaultValue()
Discover wether this parameter has a default value specified |
int |
hashCode()
Generates a hashcode for the implementation. |
boolean |
hasLegalValues()
Discover wether this parameter has legal values specified |
boolean |
hasMaxValue()
Discover wether this parameter has a maximum value specified |
boolean |
hasMinValue()
Discover wether this parameter has a minimum value specified |
boolean |
isValue(Object obj)
Tests whether an object is acceptable as a paramter value |
String |
toString()
A string representation of the open mbean parameter info. |
Methods inherited from class javax.management.MBeanAttributeInfo |
clone, getType, isIs, isReadable, isWritable |
Methods inherited from class javax.management.MBeanFeatureInfo |
getDescription, getName |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.management.openmbean.OpenMBeanAttributeInfo |
isIs, isReadable, isWritable |
Methods inherited from interface javax.management.openmbean.OpenMBeanParameterInfo |
getDescription, getName |
Constructor Detail |
public OpenMBeanAttributeInfoSupport(String name, String description, OpenType openType, boolean isReadable, boolean isWritable, boolean isIs)
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be nullisReadable
- true when the getter is exposed for managementisWritable
- true when the setter is exposed for managementisIs
- true when the getter is of the form isXXX
IllegalArgumentException
- when one of the above
constraints is not satisfiedpublic OpenMBeanAttributeInfoSupport(String name, String description, OpenType openType, boolean isReadable, boolean isWritable, boolean isIs, Object defaultValue) throws OpenDataException
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be nullisReadable
- true when the getter is exposed for managementisWritable
- true when the setter is exposed for managementisIs
- true when the getter is of the form isXXXdefaultValue
- the default value
IllegalArgumentException
- when one of the above
constraints is not satisfied
OpenDataException
- when default value is not correct for
the open type or cannot specify a default value for
ArrayType and TabularTypepublic OpenMBeanAttributeInfoSupport(String name, String description, OpenType openType, boolean isReadable, boolean isWritable, boolean isIs, Object defaultValue, Object[] legalValues) throws OpenDataException
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be nullisReadable
- true when the getter is exposed for managementisWritable
- true when the setter is exposed for managementisIs
- true when the getter is of the form isXXXdefaultValue
- the default valuelegalValues
- an array of legal values
IllegalArgumentException
- when one of the above
constraints is not satisfied
OpenDataException
public OpenMBeanAttributeInfoSupport(String name, String description, OpenType openType, boolean isReadable, boolean isWritable, boolean isIs, Object defaultValue, Comparable minValue, Comparable maxValue) throws OpenDataException
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be nullisReadable
- true when the getter is exposed for managementisWritable
- true when the setter is exposed for managementisIs
- true when the getter is of the form isXXXdefaultValue
- the default valueminValue
- the minimum valuemaxValue
- the maximum value
IllegalArgumentException
- when one of the above
constraints is not satisfied
OpenDataException
Method Detail |
public Object getDefaultValue()
OpenMBeanParameterInfo
getDefaultValue
in interface OpenMBeanParameterInfo
public Set getLegalValues()
OpenMBeanParameterInfo
getLegalValues
in interface OpenMBeanParameterInfo
public Comparable getMinValue()
OpenMBeanParameterInfo
getMinValue
in interface OpenMBeanParameterInfo
public Comparable getMaxValue()
OpenMBeanParameterInfo
getMaxValue
in interface OpenMBeanParameterInfo
public OpenType getOpenType()
OpenMBeanParameterInfo
getOpenType
in interface OpenMBeanParameterInfo
public boolean hasDefaultValue()
OpenMBeanParameterInfo
hasDefaultValue
in interface OpenMBeanParameterInfo
public boolean hasLegalValues()
OpenMBeanParameterInfo
hasLegalValues
in interface OpenMBeanParameterInfo
public boolean hasMinValue()
OpenMBeanParameterInfo
hasMinValue
in interface OpenMBeanParameterInfo
public boolean hasMaxValue()
OpenMBeanParameterInfo
hasMaxValue
in interface OpenMBeanParameterInfo
public boolean isValue(Object obj)
OpenMBeanParameterInfo
isValue
in interface OpenMBeanParameterInfo
obj
- the object to test
public boolean equals(Object obj)
OpenMBeanAttributeInfo
The object is not null
The object implements the open mbean parameter info interface
The parameter names are equal
The open types are equal
The access properties are the same
The default, min, max and legal values are equal
equals
in interface OpenMBeanAttributeInfo
equals
in class MBeanAttributeInfo
public int hashCode()
OpenMBeanAttributeInfo
The sum of the hashCodes for the elements mentioned in the equals method
hashCode
in interface OpenMBeanAttributeInfo
hashCode
in class MBeanAttributeInfo
public String toString()
OpenMBeanAttributeInfo
It is made up of implementation class and the values mentioned in the equals method
toString
in interface OpenMBeanAttributeInfo
toString
in class MBeanAttributeInfo
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |