public abstract class MonitoredAttributeBase extends Object implements MonitoredAttribute
A Convenient class provided to help users extend and implement only getValue(), if there is no need to clear the state and the attribute is not writable.
| Constructor and Description |
|---|
MonitoredAttributeBase(String name,
MonitoredAttributeInfo info)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearState()
If the concrete class decides not to provide the implementation of this
method, then it's OK.
|
MonitoredAttributeInfo |
getAttributeInfo()
Gets the MonitoredAttributeInfo for the attribute.
|
String |
getName()
Gets the name of the attribute.
|
abstract Object |
getValue()
This method should be implemented by the concrete class.
|
void |
setValue(Object value)
This method should be implemented by the concrete class only if the
attribute is writable.
|
public MonitoredAttributeBase(String name, MonitoredAttributeInfo info)
public void clearState()
clearState in interface MonitoredAttributepublic abstract Object getValue()
getValue in interface MonitoredAttributepublic void setValue(Object value)
setValue in interface MonitoredAttributevalue - should be any one of the Basic Java Type Objects which are
Long, Double, Float, String, Integer, Short, Character, Byte.
public MonitoredAttributeInfo getAttributeInfo()
getAttributeInfo in interface MonitoredAttributepublic String getName()
getName in interface MonitoredAttributeCopyright © 2018 JBoss by Red Hat. All rights reserved.