|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.MBeanFeatureInfo
javax.management.MBeanAttributeInfo
javax.management.openmbean.OpenMBeanAttributeInfoSupport
public class 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 satisfied
public 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 TabularType
public 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 OpenMBeanParameterInfopublic Set getLegalValues()
OpenMBeanParameterInfo
getLegalValues in interface OpenMBeanParameterInfopublic Comparable getMinValue()
OpenMBeanParameterInfo
getMinValue in interface OpenMBeanParameterInfopublic Comparable getMaxValue()
OpenMBeanParameterInfo
getMaxValue in interface OpenMBeanParameterInfopublic OpenType getOpenType()
OpenMBeanParameterInfo
getOpenType in interface OpenMBeanParameterInfopublic boolean hasDefaultValue()
OpenMBeanParameterInfo
hasDefaultValue in interface OpenMBeanParameterInfopublic boolean hasLegalValues()
OpenMBeanParameterInfo
hasLegalValues in interface OpenMBeanParameterInfopublic boolean hasMinValue()
OpenMBeanParameterInfo
hasMinValue in interface OpenMBeanParameterInfopublic boolean hasMaxValue()
OpenMBeanParameterInfo
hasMaxValue in interface OpenMBeanParameterInfopublic boolean isValue(Object obj)
OpenMBeanParameterInfo
isValue in interface OpenMBeanParameterInfoobj - 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 OpenMBeanAttributeInfoequals in interface OpenMBeanParameterInfoequals in class MBeanAttributeInfoobj - the object to test
public int hashCode()
OpenMBeanAttributeInfoThe sum of the hashCodes for the elements mentioned in the equals method
hashCode in interface OpenMBeanAttributeInfohashCode in interface OpenMBeanParameterInfohashCode in class MBeanAttributeInfopublic String toString()
OpenMBeanAttributeInfoIt is made up of implementation class and the values mentioned in the equals method
toString in interface OpenMBeanAttributeInfotoString in interface OpenMBeanParameterInfotoString in class MBeanAttributeInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||