|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.AttributeSupport
public class AttributeSupport
A support class for maintaining MBean attributes.
| Constructor Summary | |
|---|---|
AttributeSupport(MBeanDelegate adapter)
Constructs a new attribute support. |
|
| Method Summary | |
|---|---|
boolean |
addAttributeValue(String name,
String type,
Collection c,
int index,
Object value)
Adds a multi-valued attribute value at the specified position. |
boolean |
addAttributeValue(String name,
String type,
Collection c,
Object value)
Adds a multi-valued attribute value. |
boolean |
addAttributeValue(String name,
String type,
ConcurrentMap map,
Object key,
Object value)
Adds a multi-valued key attribute value. |
boolean |
addAttributeValue(String name,
String type,
ConcurrentMap map,
String key,
int index,
Object value)
Adds a multi-valued key attribute value at the specified position. |
int |
attributeIndexOf(Object[] values,
Object value)
Returns index of a multi-valued attribute value. |
Set |
attributeKeySet(ConcurrentMap map)
Returns a read-only set of attribute keys. |
Set |
attributeKeySet(ConcurrentMap map,
String prefix)
Returns a read-only set of prefixed attribute keys. |
Object[] |
clearAttribute(String name,
String type,
Collection c)
Clears a multi-valued attribute. |
Object[] |
clearAttribute(String name,
String type,
ConcurrentMap map,
Object key)
Clears a multi-valued key attribute. |
boolean |
clearAttributes(String name,
String type,
ConcurrentMap map)
Clears all key attributes. |
boolean |
clearAttributes(String name,
String type,
ConcurrentMap map,
String prefix)
Clears prefixed key attributes. |
boolean |
containsAttribute(ConcurrentMap map,
Object key)
Checks a key attribute. |
Object |
getAttributeValue(ConcurrentMap map,
Object key)
Gets the value of a key attribute. |
Object[] |
getAttributeValues(Collection c,
boolean clone)
Gets values of a multi-valued attribute. |
Object[] |
getAttributeValues(ConcurrentMap map,
Object key,
boolean clone)
Gets values of a multi-valued key attribute. |
Object |
removeAttribute(String name,
String type,
ConcurrentMap map,
Object key)
Removes a key attribute. |
Object |
removeAttributeValue(String name,
String type,
Collection c,
int index)
Removes an indexed multi-valued attribute value. |
boolean |
removeAttributeValue(String name,
String type,
Collection c,
Object value)
Removes a multi-valued attribute value. |
Object |
removeAttributeValue(String name,
String type,
ConcurrentMap map,
Object key,
int index)
Removes an indexed multi-valued attribute value. |
boolean |
removeAttributeValue(String name,
String type,
ConcurrentMap map,
Object key,
Object value)
Removes a multi-valued key attribute value. |
Object |
setAttributeValue(String name,
String type,
ConcurrentMap map,
Object key,
Object value)
Sets the value of a key attribute. |
void |
setAttributeValue(String name,
String type,
ConcurrentMap map,
String key,
int index,
Object value)
Sets a multi-valued key attribute value at the specified position. |
void |
setAttributeValue(String name,
String type,
List l,
int index,
Object value)
Sets a multi-valued attribute value at the specified position. |
boolean |
setAttributeValue(String name,
String type,
OrderedMap map,
int index,
Object key,
Object value)
Sets an indexed value for a key attribute. |
boolean |
setAttributeValueIfAbsent(String name,
String type,
ConcurrentMap map,
Object key,
Object value)
Sets a missing value for a key attribute. |
Object[] |
setAttributeValues(String name,
String type,
Collection c,
Object[] values)
Sets values of a multi-valued attribute. |
void |
setAttributeValues(String name,
String type,
ConcurrentMap map,
Map values)
Sets the values of key attributes. |
Object[] |
setAttributeValues(String name,
String type,
ConcurrentMap map,
Object key,
Object[] values)
Sets values of a multi-valued key attribute. |
void |
setAttributeValuesIfAbsent(String name,
String type,
ConcurrentMap map,
Map values)
Sets missing values of key attributes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeSupport(MBeanDelegate adapter)
adapter - the adapter MBean.| Method Detail |
|---|
public int attributeIndexOf(Object[] values,
Object value)
values - attribute values.value - the searched value.
public Object[] getAttributeValues(Collection c,
boolean clone)
c - the attribute collection.clone - return a cloned array if true.
public Object[] setAttributeValues(String name,
String type,
Collection c,
Object[] values)
name - the attribute name.type - the attribute type.c - the attribute collection.values - the attribute values.
public void setAttributeValue(String name,
String type,
List l,
int index,
Object value)
name - the attribute name.type - the attribute type.l - the attribute list.index - the index of the attribute.value - the attribute value.
public boolean addAttributeValue(String name,
String type,
Collection c,
Object value)
name - the attribute name.type - the attribute type.c - the attribute collection.value - the attribute value.
public boolean addAttributeValue(String name,
String type,
Collection c,
int index,
Object value)
name - the attribute name.type - the attribute type.c - the attribute collection.index - the index of the attribute.value - the attribute value.
public boolean removeAttributeValue(String name,
String type,
Collection c,
Object value)
name - the attribute name.type - the attribute type.c - the attribute collection.value - the attribute value.
public Object removeAttributeValue(String name,
String type,
Collection c,
int index)
name - the attribute name.type - the attribute type.c - the attribute collection.index - the index of the attribute.
public Object[] clearAttribute(String name,
String type,
Collection c)
name - the attribute name.type - the attribute type.c - the attribute collection.
public void setAttributeValues(String name,
String type,
ConcurrentMap map,
Map values)
name - the attribute name.type - the attribute type.map - the attribute map.values - the attribute values.
public void setAttributeValuesIfAbsent(String name,
String type,
ConcurrentMap map,
Map values)
name - the attribute name.type - the attribute type.map - the attribute map.values - the attribute values.
public boolean containsAttribute(ConcurrentMap map,
Object key)
map - the attribute map.key - the attribute key.
public Object getAttributeValue(ConcurrentMap map,
Object key)
map - the attribute map.key - the attribute key.
public Object setAttributeValue(String name,
String type,
ConcurrentMap map,
Object key,
Object value)
name - the attribute name.type - the attribute type.map - the attribute map.key - the attribute key.value - the attribute value.
public boolean setAttributeValueIfAbsent(String name,
String type,
ConcurrentMap map,
Object key,
Object value)
name - the attribute name.type - the attribute type.map - the attribute map.key - the attribute key.value - the attribute value.
public boolean setAttributeValue(String name,
String type,
OrderedMap map,
int index,
Object key,
Object value)
name - the attribute name.type - the attribute type.map - the attribute map.index - the attribute index.key - the attribute key.value - the attribute value.
public Object removeAttribute(String name,
String type,
ConcurrentMap map,
Object key)
name - the attribute name.type - the attribute type.map - the attribute map.key - the attribute key.
public Object[] getAttributeValues(ConcurrentMap map,
Object key,
boolean clone)
map - the attribute map.key - the attribute key.clone - return a cloned array if true.
public Object[] setAttributeValues(String name,
String type,
ConcurrentMap map,
Object key,
Object[] values)
name - the attribute name.type - the attribute type.map - the attribute map.key - the attribute key.values - the attribute values.
public void setAttributeValue(String name,
String type,
ConcurrentMap map,
String key,
int index,
Object value)
name - the attribute name.type - the attribute type.map - the attribute map.key - the attribute key.index - the index of the attribute.value - the attribute value.
public boolean addAttributeValue(String name,
String type,
ConcurrentMap map,
Object key,
Object value)
name - the attribute name.type - the attribute type.map - the attribute map.key - the attribute key.value - the attribute value.
public boolean addAttributeValue(String name,
String type,
ConcurrentMap map,
String key,
int index,
Object value)
name - the attribute name.type - the attribute type.map - the attribute map.key - the attribute key.index - the index of the attribute.value - the attribute value.
public boolean removeAttributeValue(String name,
String type,
ConcurrentMap map,
Object key,
Object value)
name - the attribute name.type - the attribute type.map - the attribute map.key - the attribute key.value - the attribute value.
public Object removeAttributeValue(String name,
String type,
ConcurrentMap map,
Object key,
int index)
name - the attribute name.type - the attribute type.map - the attribute map.key - the attribute key.index - the index of the value.
public Object[] clearAttribute(String name,
String type,
ConcurrentMap map,
Object key)
name - the attribute name.type - the attribute type.map - the attribute map.key - the attribute key.
public boolean clearAttributes(String name,
String type,
ConcurrentMap map)
name - the attribute name.type - the attribute type.map - the attribute map.
public boolean clearAttributes(String name,
String type,
ConcurrentMap map,
String prefix)
name - the attribute name.type - the attribute type.map - the attribute map.prefix - the attribute prefix.
public Set attributeKeySet(ConcurrentMap map)
map - the attribute map.
public Set attributeKeySet(ConcurrentMap map,
String prefix)
map - the attribute map.prefix - the attribute prefix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||