|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | ||
---|---|---|
|
addAttributeValue(String name,
String type,
Collection<V> c,
int index,
V value)
Adds a multi-valued attribute value at the specified position. |
|
|
addAttributeValue(String name,
String type,
Collection<V> c,
V value)
Adds a multi-valued attribute value. |
|
|
addAttributeValue(String name,
String type,
ConcurrentMap<K,Collection<V>> map,
K key,
int index,
V value)
Adds a multi-valued key attribute value at the specified position. |
|
|
addAttributeValue(String name,
String type,
ConcurrentMap<K,Collection<V>> map,
K key,
V value)
Adds a multi-valued key attribute value. |
|
int |
attributeIndexOf(Object[] values,
Object value)
Returns index of a multi-valued attribute value. |
|
|
attributeKeySet(ConcurrentMap<K,?> map)
Returns a read-only set of attribute keys. |
|
Set<String> |
attributeKeySet(ConcurrentMap<String,?> map,
String prefix)
Returns a read-only set of prefixed attribute keys. |
|
|
clearAttribute(String name,
String type,
Collection<V> c)
Clears a multi-valued attribute. |
|
|
clearAttribute(String name,
String type,
ConcurrentMap<K,Collection<V>> map,
Object key)
Clears a multi-valued key attribute. |
|
|
clearAttributes(String name,
String type,
ConcurrentMap<K,?> map)
Clears all key attributes. |
|
boolean |
clearAttributes(String name,
String type,
ConcurrentMap<String,?> map,
String prefix)
Clears prefixed key attributes. |
|
|
containsAttribute(ConcurrentMap<K,V> map,
Object key)
Checks a key attribute. |
|
|
getAttributeValue(ConcurrentMap<K,V> map,
Object key)
Gets the value of a key attribute. |
|
|
getAttributeValues(Collection<V> c)
Gets values of a multi-valued attribute. |
|
|
getAttributeValues(ConcurrentMap<K,Collection<V>> map,
Object key)
Gets values of a multi-valued key attribute. |
|
|
removeAttribute(String name,
String type,
ConcurrentMap<K,V> map,
Object key)
Removes a key attribute. |
|
|
removeAttributeValue(String name,
String type,
Collection<V> c,
int index)
Removes an indexed multi-valued attribute value. |
|
|
removeAttributeValue(String name,
String type,
Collection<V> c,
Object value)
Removes a multi-valued attribute value. |
|
|
removeAttributeValue(String name,
String type,
ConcurrentMap<K,Collection<V>> map,
int index,
Object key)
Removes an indexed multi-valued attribute value. |
|
|
removeAttributeValue(String name,
String type,
ConcurrentMap<K,Collection<V>> map,
Object key,
Object value)
Removes a multi-valued key attribute value. |
|
|
setAttributeValue(String name,
String type,
ConcurrentMap<K,List<V>> map,
K key,
int index,
V value)
Sets a multi-valued key attribute value at the specified position. |
|
|
setAttributeValue(String name,
String type,
ConcurrentMap<K,V> map,
K key,
V value)
Sets the value of a key attribute. |
|
|
setAttributeValue(String name,
String type,
List<V> l,
int index,
V value)
Sets a multi-valued attribute value at the specified position. |
|
|
setAttributeValue(String name,
String type,
OrderedMap<K,V> map,
int index,
K key,
V value)
Sets an indexed value for a key attribute. |
|
|
setAttributeValueIfAbsent(String name,
String type,
ConcurrentMap<K,V> map,
K key,
V value)
Sets a missing value for a key attribute. |
|
|
setAttributeValues(String name,
String type,
Collection<V> c,
V[] values)
Sets values of a multi-valued attribute. |
|
|
setAttributeValues(String name,
String type,
ConcurrentMap<K,Collection<V>> map,
K key,
V[] values)
Sets values of a multi-valued key attribute. |
|
|
setAttributeValues(String name,
String type,
ConcurrentMap<K,V> map,
Map<K,V> values)
Sets values of key attributes without clearing existing ones. |
|
|
setAttributeValuesIfAbsent(String name,
String type,
ConcurrentMap<K,Collection<V>> map,
K key,
V[] values)
Sets values of a multi-valued key attribute if absent. |
|
|
setAttributeValuesIfAbsent(String name,
String type,
ConcurrentMap<K,V> map,
Map<K,V> 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 <V> V[] getAttributeValues(Collection<V> c)
V
- the value type.c
- the attribute collection.
public <V> V[] setAttributeValues(String name, String type, Collection<V> c, V[] values)
V
- the value type.name
- the attribute name.type
- the attribute type.c
- the attribute collection.values
- the attribute values.
public <V> void setAttributeValue(String name, String type, List<V> l, int index, V value)
V
- the value type.name
- the attribute name.type
- the attribute type.l
- the attribute list.index
- the index of the attribute.value
- the attribute value.public <V> boolean addAttributeValue(String name, String type, Collection<V> c, V value)
V
- the value type.name
- the attribute name.type
- the attribute type.c
- the attribute collection.value
- the attribute value.
public <V> boolean addAttributeValue(String name, String type, Collection<V> c, int index, V value)
V
- the value type.name
- the attribute name.type
- the attribute type.c
- the attribute collection.index
- the index of the attribute.value
- the attribute value.
public <V> boolean removeAttributeValue(String name, String type, Collection<V> c, Object value)
V
- the value type.name
- the attribute name.type
- the attribute type.c
- the attribute collection.value
- the attribute value.
public <V> V removeAttributeValue(String name, String type, Collection<V> c, int index)
V
- the value type.name
- the attribute name.type
- the attribute type.c
- the attribute collection.index
- the index of the attribute.
public <V> V[] clearAttribute(String name, String type, Collection<V> c)
V
- the value type.name
- the attribute name.type
- the attribute type.c
- the attribute collection.
public <K,V> void setAttributeValues(String name, String type, ConcurrentMap<K,V> map, Map<K,V> values)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.values
- the attribute values.public <K,V> void setAttributeValuesIfAbsent(String name, String type, ConcurrentMap<K,V> map, Map<K,V> values)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.values
- the attribute values.public <K,V> boolean containsAttribute(ConcurrentMap<K,V> map, Object key)
K
- the key type.V
- the value type.map
- the attribute map.key
- the attribute key.
public <K,V> V getAttributeValue(ConcurrentMap<K,V> map, Object key)
K
- the key type.V
- the value type.map
- the attribute map.key
- the attribute key.
public <K,V> V setAttributeValue(String name, String type, ConcurrentMap<K,V> map, K key, V value)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.key
- the attribute key.value
- the attribute value.
public <K,V> boolean setAttributeValueIfAbsent(String name, String type, ConcurrentMap<K,V> map, K key, V value)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.key
- the attribute key.value
- the attribute value.
public <K,V> V setAttributeValue(String name, String type, OrderedMap<K,V> map, int index, K key, V value)
K
- the key type.V
- the value type.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 <K,V> V removeAttribute(String name, String type, ConcurrentMap<K,V> map, Object key)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.key
- the attribute key.
public <K,V> V[] getAttributeValues(ConcurrentMap<K,Collection<V>> map, Object key)
K
- the key type.V
- the value type.map
- the attribute map.key
- the attribute key.
public <K,V> V[] setAttributeValues(String name, String type, ConcurrentMap<K,Collection<V>> map, K key, V[] values)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.key
- the attribute key.values
- the attribute values.
public <K,V> V[] setAttributeValuesIfAbsent(String name, String type, ConcurrentMap<K,Collection<V>> map, K key, V[] values)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.key
- the attribute key.values
- the attribute values.
public <K,V> void setAttributeValue(String name, String type, ConcurrentMap<K,List<V>> map, K key, int index, V value)
K
- the key type.V
- the value type.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 <K,V> boolean addAttributeValue(String name, String type, ConcurrentMap<K,Collection<V>> map, K key, V value)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.key
- the attribute key.value
- the attribute value.
public <K,V> boolean addAttributeValue(String name, String type, ConcurrentMap<K,Collection<V>> map, K key, int index, V value)
K
- the key type.V
- the value type.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 <K,V> boolean removeAttributeValue(String name, String type, ConcurrentMap<K,Collection<V>> map, Object key, Object value)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.key
- the attribute key.value
- the attribute value.
public <K,V> V removeAttributeValue(String name, String type, ConcurrentMap<K,Collection<V>> map, int index, Object key)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.key
- the attribute key.index
- the index of the value.
public <K,V> V[] clearAttribute(String name, String type, ConcurrentMap<K,Collection<V>> map, Object key)
K
- the key type.V
- the value type.name
- the attribute name.type
- the attribute type.map
- the attribute map.key
- the attribute key.
public <K> boolean clearAttributes(String name, String type, ConcurrentMap<K,?> map)
K
- the key type.name
- the attribute name.type
- the attribute type.map
- the attribute map.
public boolean clearAttributes(String name, String type, ConcurrentMap<String,?> map, String prefix)
name
- the attribute name.type
- the attribute type.map
- the attribute map.prefix
- the attribute prefix.
public <K> Set<K> attributeKeySet(ConcurrentMap<K,?> map)
K
- the key type.map
- the attribute map.
public Set<String> attributeKeySet(ConcurrentMap<String,?> 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 |