|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.admin.amx.intf.config.AMXConfigHelper
@Taxonomy(stability=UNCOMMITTED) public class AMXConfigHelper
Various shortcut methods for working with AMX config MBeans, particularly attributes and metadata.
| Constructor Summary | |
|---|---|
AMXConfigHelper(AMXConfigProxy amx)
|
|
| Method Summary | |
|---|---|
Descriptor |
attributeDescriptor(String attrName)
Get the JMX Descriptor for an Attribute. |
Object |
attributeDescriptorField(String attrName,
String fieldName)
Get the field value for an Attribute and specified field name, if any. |
Set<String> |
attributeNamesByDescriptorField(String fieldName,
String value)
match all attributes that have a Descriptor field with the specified value. |
String |
dataType(String attrName)
Return the dataType (if any) for the specified attribute eg java.lang.Boolean, |
String |
defaultValue(String attrName)
Return the default value of the attribute, or null if no default value. |
boolean |
key(String attrName)
return true if the Attribute is a key value |
Long |
max(String attrName)
Return the maximum value (if any) for the specified numeric attribute. |
Long |
min(String attrName)
Return the minimum value (if any) for the specified numeric attribute. |
boolean |
notNull(String attrName)
return true if the Attribute may not be null (is required) |
String |
regexPattern(String attrName)
Return the regex pattern (if any) for the specified attribute. |
Boolean |
required(String attrName)
Return whether the attribute is required. |
Set<String> |
simpleAttributes()
Get simple attribute names; those that are not Element kind. |
Map<String,Object> |
simpleAttributesMap()
Get simple attributes; those that are not Element kind. |
String |
units(String attrName)
Return the units (if any) for the specified attribute. |
String |
xmlName(String attrName)
Return the xml name of the attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AMXConfigHelper(AMXConfigProxy amx)
| Method Detail |
|---|
public Set<String> attributeNamesByDescriptorField(String fieldName,
String value)
amx - the proxyfieldName - name of the field in the Descriptor for each Attributevalue - value of the field in the Descriptor for each Attributepublic Set<String> simpleAttributes()
public Map<String,Object> simpleAttributesMap()
public final Descriptor attributeDescriptor(String attrName)
AMXConfigConstants
public final Object attributeDescriptorField(String attrName,
String fieldName)
attrName - fieldName - AMXConfigConstantspublic String units(String attrName)
attrName - public Long min(String attrName)
attrName - public Long max(String attrName)
attrName - public String dataType(String attrName)
attrName - java.lang.Integer, java.lang.Long, java.lang.Stringpublic String regexPattern(String attrName)
attrName - public boolean key(String attrName)
attrName - public boolean notNull(String attrName)
attrName - public Boolean required(String attrName)
attrName - public String xmlName(String attrName)
attrName - public String defaultValue(String attrName)
attrName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||