|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.MBeanFeatureInfo
javax.management.MBeanParameterInfo
javax.management.openmbean.OpenMBeanParameterInfoSupport
OpenMBeanParameterInfo implementation
| Field Summary |
| Fields inherited from class javax.management.MBeanFeatureInfo |
description, name |
| Constructor Summary | |
OpenMBeanParameterInfoSupport(String name,
String description,
OpenType openType)
Contruct an OpenMBeanParameterInfoSupport |
|
OpenMBeanParameterInfoSupport(String name,
String description,
OpenType openType,
Object defaultValue)
Contruct an OpenMBeanParameterInfoSupport |
|
OpenMBeanParameterInfoSupport(String name,
String description,
OpenType openType,
Object defaultValue,
Comparable minValue,
Comparable maxValue)
Contruct an OpenMBeanParameterInfoSupport |
|
OpenMBeanParameterInfoSupport(String name,
String description,
OpenType openType,
Object defaultValue,
Object[] legalValues)
Contruct an OpenMBeanParameterInfoSupport |
|
| 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.MBeanParameterInfo |
clone, getType |
| 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.OpenMBeanParameterInfo |
getDescription, getName |
| Constructor Detail |
public OpenMBeanParameterInfoSupport(String name, String description, OpenType openType)
name - cannot be null or emptydescription - cannot be null or emptyopenType - cannot be null
IllegalArgumentException - when one of the above
constraints is not satisfiedpublic OpenMBeanParameterInfoSupport(String name, String description, OpenType openType, Object defaultValue) throws OpenDataException
name - cannot be null or emptydescription - cannot be null or emptyopenType - cannot be nulldefaultValue - 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 OpenMBeanParameterInfoSupport(String name, String description, OpenType openType, Object defaultValue, Object[] legalValues) throws OpenDataException
name - cannot be null or emptydescription - cannot be null or emptyopenType - cannot be nulldefaultValue - the default valuelegalValues - an array of legal values
IllegalArgumentException - when one of the above
constraints is not satisfied
OpenDataExceptionpublic OpenMBeanParameterInfoSupport(String name, String description, OpenType openType, Object defaultValue, Comparable minValue, Comparable maxValue) throws OpenDataException
name - cannot be null or emptydescription - cannot be null or emptyopenType - cannot be nulldefaultValue - 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)
OpenMBeanParameterInfo
The object is not null
The object implements the open mbean attribute info interface
The parameter names are equal
The open types are equal
The default, min, max and legal values are equal
equals in interface OpenMBeanParameterInfoequals in class MBeanParameterInfopublic int hashCode()
OpenMBeanParameterInfoThe sum of the hashCodes for the elements mentioned in the equals method
hashCode in interface OpenMBeanParameterInfohashCode in class MBeanParameterInfopublic String toString()
OpenMBeanParameterInfoIt is made up of implementation class and the values mentioned in the equals method
toString in interface OpenMBeanParameterInfotoString in class MBeanParameterInfo
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||