|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mc4j.ems.impl.jmx.connection.bean.attribute.DAttribute
public class DAttribute
| Field Summary | |
|---|---|
protected DMBean |
bean
|
protected java.util.Set<AttributeChangeListener> |
changeListeners
|
protected java.lang.Object |
currentValue
|
protected java.util.LinkedList<java.lang.Throwable> |
failures
|
protected javax.management.MBeanAttributeInfo |
info
|
protected long |
lastRetrieved
|
protected boolean |
loaded
|
protected boolean |
supportedType
|
protected ValueHistory |
valueHistory
|
| Constructor Summary | |
|---|---|
DAttribute(javax.management.MBeanAttributeInfo info,
DMBean bean)
|
|
| Method Summary | |
|---|---|
void |
alterValue(java.lang.Object newValue)
Alters the internally stored value of this attribute. |
int |
compareTo(java.lang.Object o)
|
java.lang.String |
getDescription()
|
java.util.List<java.lang.Throwable> |
getFailures()
TODO GH: Should this be a list of failure objects that has more info or perhaps a custom exception with the info? (timestamp, bean name, attribute name) TODO GH: Should this be all failures, retrieval failures, what about set failures? TODO GH: Should this be genericised for the server proxy objects? |
java.lang.String |
getName()
|
java.lang.String |
getType()
|
java.lang.Class |
getTypeClass()
|
java.lang.Object |
getValue()
|
org.mc4j.ems.store.ValueHistory |
getValueHistory()
|
int |
getValueSize()
|
protected void |
init()
Initializes internal storage settings for the value history |
boolean |
isNumericType()
|
boolean |
isReadable()
|
boolean |
isSupportedType()
|
boolean |
isWritable()
|
java.lang.Object |
refresh()
Updates the local value of this mbean from the server TODO we should not update to null on failure, but retain the last known |
void |
registerAttributeChangeListener(AttributeChangeListener listener)
|
protected void |
registerFailure(java.lang.Throwable t)
|
void |
setSupportedType(boolean supportedType)
|
void |
setValue(java.lang.Object newValue)
Set the attribute on the server |
protected boolean |
storeHistory(java.lang.Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.management.MBeanAttributeInfo info
protected DMBean bean
protected boolean loaded
protected boolean supportedType
protected java.util.Set<AttributeChangeListener> changeListeners
protected long lastRetrieved
protected java.lang.Object currentValue
protected ValueHistory valueHistory
protected java.util.LinkedList<java.lang.Throwable> failures
| Constructor Detail |
|---|
public DAttribute(javax.management.MBeanAttributeInfo info,
DMBean bean)
| Method Detail |
|---|
protected void init()
public void registerAttributeChangeListener(AttributeChangeListener listener)
public java.lang.Object getValue()
public int getValueSize()
public void setValue(java.lang.Object newValue)
throws java.lang.Exception
newValue - The value to be set
java.lang.Exceptionpublic void alterValue(java.lang.Object newValue)
newValue - protected boolean storeHistory(java.lang.Object value)
public java.lang.Object refresh()
public java.util.List<java.lang.Throwable> getFailures()
protected void registerFailure(java.lang.Throwable t)
public org.mc4j.ems.store.ValueHistory getValueHistory()
public java.lang.String getName()
public java.lang.String getType()
public java.lang.Class getTypeClass()
public boolean isNumericType()
public java.lang.String getDescription()
public boolean isWritable()
public boolean isReadable()
public boolean isSupportedType()
public void setSupportedType(boolean supportedType)
public int compareTo(java.lang.Object o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||