|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.MBeanInfo
org.norther.tammi.core.rt.VariableInfo
public class VariableInfo
A variable MBean extension to MBeanInfo.
| Field Summary | |
|---|---|
protected static String |
ADD_ATTRIBUTE_ELEMENT_DESCRIPTION
Add attribute element description. |
protected static String |
ADD_ATTRIBUTE_INFO_DESCRIPTION
Add attribute info description. |
protected static String |
ADD_VALIDATED_ELEMENT_DESCRIPTION
Add validated element description. |
protected static String |
ATTRIBUTE_INFO_DESCRIPTION
Attribute info description. |
protected static String |
ATTRIBUTE_LENGTH_DESCRIPTION
Attribute length description. |
protected static String |
ATTRIBUTE_LIST_DESCRIPTION
Attribute list description. |
protected static String |
ATTRIBUTE_POSITION_DESCRIPTION
Attribute position description. |
protected static String |
ATTRIBUTE_VALUES_DESCRIPTION
Attribute values description. |
protected static String |
CLEAR_ATTRIBUTE_INFO_DESCRIPTION
Clear attribute info description. |
protected static String |
CLEAR_ATTRIBUTE_VALUES_DESCRIPTION
Clear attribute values description. |
protected static String |
CONTAINS_ATTRIBUTE_DESCRIPTION
Contains attribute description. |
protected static String |
CONTAINS_TRAIT_DESCRIPTION
Contains trait description. |
protected static String |
EXPORT_ATTRIBUTES_DESCRIPTION
Export attributes description. |
protected static String |
GET_ATTRIBUTE_ELEMENT_DESCRIPTION
Get attribute element description. |
protected static String |
GET_ATTRIBUTE_VALUE_DESCRIPTION
Get attribute value description. |
protected static String |
GET_RECURSIVE_ELEMENT_DESCRIPTION
Get recursive element description. |
protected static String |
GET_RECURSIVE_VALUE_DESCRIPTION
Get recursive value description. |
protected static String |
GET_VALIDATED_ELEMENT_DESCRIPTION
Get validated element description. |
protected static String |
GET_VALIDATED_VALUE_DESCRIPTION
Get validated value description. |
protected static String |
ID_ATTRIBUTE_LIST_DESCRIPTION
Id attribute list description. |
protected static String |
ID_DESCRIPTION
Id description. |
protected static String |
IMPORT_ATTRIBUTES_DESCRIPTION
Import attributes description. |
static String |
MBEAN_CONST_DESCRIPTION
Constructor description. |
static String |
NAME_PATTERN_FIELD
The name pattern field. |
protected static String |
REMOVE_ATTRIBUTE_ELEMENT_DESCRIPTION
Remove attribute element description. |
static String |
REMOVE_VALIDATED_ELEMENT_DESCRIPTION
Remove validated element description. |
protected static String |
REPLACE_ATTRIBUTE_INFO_DESCRIPTION
Replace attribute info description. |
protected static String |
RESET_VALIDATED_VALUES_DESCRIPTION
Reset validated values description. |
protected static String |
SET_ATTRIBUTE_ELEMENT_DESCRIPTION
Set attribute element description. |
protected static String |
SET_ATTRIBUTE_VALUE_DESCRIPTION
Set attribute value description. |
protected static String |
SET_ATTRIBUTE_VALUES_DESCRIPTION
Sets attribute values description. |
protected static String |
SET_VALIDATED_ELEMENT_DESCRIPTION
Set validated element description. |
protected static String |
SET_VALIDATED_VALUE_DESCRIPTION
Set validated value description. |
protected static String |
TYPE_DESCRIPTION
Type description. |
protected static String |
VALIDATE_ATTRIBUTE_VALUES_DESCRIPTION
Validate attribute values description. |
protected static String |
VALIDATED_VALUES_DESCRIPTION
Validated values description. |
protected static String |
VARIABLE_INFO_DESCRIPTION
Variable info description. |
static String |
VARIABLE_PACKAGE
The default variable package. |
| Constructor Summary | |
|---|---|
VariableInfo()
Constructs a default info. |
|
VariableInfo(String className)
Constructs a class specific info. |
|
VariableInfo(String className,
String descr,
MBeanAttributeInfo[] attributes,
MBeanConstructorInfo[] constructors,
MBeanOperationInfo[] operations,
MBeanNotificationInfo[] notifications)
Constructs a new info. |
|
VariableInfo(String className,
String descr,
MBeanAttributeInfo[] attributes,
MBeanConstructorInfo[] constructors,
MBeanOperationInfo[] operations,
MBeanNotificationInfo[] notifications,
Descriptor dtor)
Constructs a new info with a descriptor. |
|
VariableInfo(String className,
String descr,
VariableAttributeInfo[] dynamics,
MBeanAttributeInfo[] attributes,
MBeanConstructorInfo[] constructors,
MBeanOperationInfo[] operations,
MBeanNotificationInfo[] notifications,
Descriptor dtor)
Constructs a new info with dynamic attributes and descriptor. |
|
| Method Summary | ||
|---|---|---|
boolean |
addDynamicAttribute(int index,
VariableAttributeInfo info)
Adds the specified dynamic attribute, if not present. |
|
void |
clearDynamicAtributes()
Clears dynamic attributes. |
|
Object |
clone()
|
|
boolean |
containsTrait(VariableAttributeInfo.Trait trait)
Checks whether the specified trait is permanently on in any of the attributes. |
|
int |
dynamicAttributeCount()
Returns the number of dynamic attributes. |
|
VariableAttributeInfo |
dynamicAttributeInfo(int index)
Returns an indexed dynamic attribute info. |
|
VariableAttributeInfo |
dynamicAttributeInfo(String name,
boolean... modifiable)
Returns an optionally modifiable named dynamic attribute info. |
|
List<VariableAttributeInfo> |
dynamicAttributeList(boolean... modifiable)
Returns a list of optionally modifiable dynamic attribute infos. |
|
VariableAttributeInfo |
elementAttributeInfo()
Returns the element attribute info. |
|
protected OrderedMap<String,VariableAttributeInfo> |
getAttributeMap()
Gets the map of variable attributes. |
|
MBeanAttributeInfo[] |
getAttributes()
|
|
|
getConstant(Class<E> clazz)
Gets the specified constant. |
|
String |
getDescription()
|
|
Descriptor |
getDescriptor()
Gets the descriptor of this variable. |
|
VariableAttributeInfo[] |
getDynamicAttributes()
Gets the dynamic attributes of this variable. |
|
MBeanAttributeInfo[] |
getFixedAttributes()
Gets the fixed attributes of this variable. |
|
|
getListeners(Class<L> clazz)
Gets the specified listeners. |
|
String |
getNamePattern()
Gets the name pattern of this variable. |
|
int |
indexOfDynamicAttribute(String name)
Gets the index of the named dynamic attribute. |
|
boolean |
isImmutable()
Checks whether this variable is immutable. |
|
|
setConstant(Class<E> clazz,
E constant)
Sets the specified constant. |
|
void |
setDescription(String descr)
Sets the description of this variable. |
|
void |
setImmutable(boolean flag)
Sets whether this variable is immutable. |
|
|
setListener(Class<L> clazz,
L[] listeners)
Sets the specified listeners. |
|
void |
setNamePattern(String pattern)
Sets the name pattern of this variable. |
|
| Methods inherited from class javax.management.MBeanInfo |
|---|
equals, getClassName, getConstructors, getNotifications, getOperations, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String VARIABLE_PACKAGE
public static final String NAME_PATTERN_FIELD
public static final String MBEAN_CONST_DESCRIPTION
protected static final String ID_DESCRIPTION
protected static final String TYPE_DESCRIPTION
protected static final String ATTRIBUTE_VALUES_DESCRIPTION
protected static final String SET_ATTRIBUTE_VALUES_DESCRIPTION
protected static final String GET_ATTRIBUTE_VALUE_DESCRIPTION
protected static final String SET_ATTRIBUTE_VALUE_DESCRIPTION
protected static final String GET_ATTRIBUTE_ELEMENT_DESCRIPTION
protected static final String SET_ATTRIBUTE_ELEMENT_DESCRIPTION
protected static final String ADD_ATTRIBUTE_ELEMENT_DESCRIPTION
protected static final String REMOVE_ATTRIBUTE_ELEMENT_DESCRIPTION
protected static final String VALIDATED_VALUES_DESCRIPTION
protected static final String RESET_VALIDATED_VALUES_DESCRIPTION
protected static final String VALIDATE_ATTRIBUTE_VALUES_DESCRIPTION
protected static final String CLEAR_ATTRIBUTE_VALUES_DESCRIPTION
protected static final String GET_VALIDATED_VALUE_DESCRIPTION
protected static final String SET_VALIDATED_VALUE_DESCRIPTION
protected static final String GET_VALIDATED_ELEMENT_DESCRIPTION
protected static final String SET_VALIDATED_ELEMENT_DESCRIPTION
protected static final String ADD_VALIDATED_ELEMENT_DESCRIPTION
public static final String REMOVE_VALIDATED_ELEMENT_DESCRIPTION
protected static final String GET_RECURSIVE_VALUE_DESCRIPTION
protected static final String GET_RECURSIVE_ELEMENT_DESCRIPTION
protected static final String ATTRIBUTE_LENGTH_DESCRIPTION
protected static final String VARIABLE_INFO_DESCRIPTION
protected static final String ATTRIBUTE_INFO_DESCRIPTION
protected static final String ADD_ATTRIBUTE_INFO_DESCRIPTION
protected static final String REPLACE_ATTRIBUTE_INFO_DESCRIPTION
protected static final String CLEAR_ATTRIBUTE_INFO_DESCRIPTION
protected static final String ATTRIBUTE_LIST_DESCRIPTION
protected static final String CONTAINS_ATTRIBUTE_DESCRIPTION
protected static final String CONTAINS_TRAIT_DESCRIPTION
protected static final String ID_ATTRIBUTE_LIST_DESCRIPTION
protected static final String ATTRIBUTE_POSITION_DESCRIPTION
protected static final String IMPORT_ATTRIBUTES_DESCRIPTION
protected static final String EXPORT_ATTRIBUTES_DESCRIPTION
| Constructor Detail |
|---|
public VariableInfo()
public VariableInfo(String className)
className - the class name.
public VariableInfo(String className,
String descr,
MBeanAttributeInfo[] attributes,
MBeanConstructorInfo[] constructors,
MBeanOperationInfo[] operations,
MBeanNotificationInfo[] notifications)
className - the class name.descr - the description.attributes - the attributes.constructors - constructors.operations - the operations.notifications - the notifications.
public VariableInfo(String className,
String descr,
MBeanAttributeInfo[] attributes,
MBeanConstructorInfo[] constructors,
MBeanOperationInfo[] operations,
MBeanNotificationInfo[] notifications,
Descriptor dtor)
className - the class name.descr - the description.attributes - the attributes.constructors - constructors.operations - the operations.notifications - the notifications.dtor - the descriptor.
public VariableInfo(String className,
String descr,
VariableAttributeInfo[] dynamics,
MBeanAttributeInfo[] attributes,
MBeanConstructorInfo[] constructors,
MBeanOperationInfo[] operations,
MBeanNotificationInfo[] notifications,
Descriptor dtor)
className - the class name.descr - the description.dynamics - the dynamic attributes.attributes - the fixed attributes.constructors - constructors.operations - the operations.notifications - the notifications.dtor - the descriptor.| Method Detail |
|---|
public Object clone()
clone in class MBeanInfopublic MBeanAttributeInfo[] getAttributes()
getAttributes in class MBeanInfopublic MBeanAttributeInfo[] getFixedAttributes()
public VariableAttributeInfo[] getDynamicAttributes()
public List<VariableAttributeInfo> dynamicAttributeList(boolean... modifiable)
modifiable - true for modifiable, false otherwise.
public VariableAttributeInfo dynamicAttributeInfo(String name,
boolean... modifiable)
name - the attribute name.modifiable - true for modifiable, false otherwise.
public VariableAttributeInfo dynamicAttributeInfo(int index)
index - the attribute index.
public boolean addDynamicAttribute(int index,
VariableAttributeInfo info)
index - the position.info - the attribute info.
public int indexOfDynamicAttribute(String name)
name - the attribute name.
public int dynamicAttributeCount()
public void clearDynamicAtributes()
public VariableAttributeInfo elementAttributeInfo()
public boolean containsTrait(VariableAttributeInfo.Trait trait)
trait - the trait to check.
public boolean isImmutable()
public void setImmutable(boolean flag)
flag - true if immutable, false otherwise.public String getDescription()
getDescription in class MBeanInfopublic void setDescription(String descr)
descr - the variable description.public String getNamePattern()
public void setNamePattern(String pattern)
pattern - the name pattern.public <L extends EventListener> L[] getListeners(Class<L> clazz)
L - the listener type.clazz - the listener class.
public <L extends EventListener> void setListener(Class<L> clazz,
L[] listeners)
L - the listener type.clazz - the listener class.listeners - the listener instances.public <E extends Enum<?>> E getConstant(Class<E> clazz)
E - the constant type.clazz - the constant class.
public <E extends Enum<?>> void setConstant(Class<E> clazz,
E constant)
E - the constant type.clazz - the constant class.constant - the constant instance.public Descriptor getDescriptor()
getDescriptor in interface DescriptorReadgetDescriptor in class MBeanInfoprotected OrderedMap<String,VariableAttributeInfo> getAttributeMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||