|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.rt.VariableX
org.norther.tammi.core.rt.VariableY
org.norther.tammi.core.rt.VariableZ
public class VariableZ
A fully dynamic Variable implementation supporting run-time modifications to its attribute set. The memory footprint is larger as each instance maintains its own copy of meta-data of its attribute set.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.rt.VariableX |
|---|
MBEAN_CONST_DESCRIPTION, VARIABLE_ATTRIBUTES, VARIABLE_CONSTRUCTORS, VARIABLE_NOTIFICATIONS, VARIABLE_OPERATIONS |
| Fields inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
DEFAULT_ID, ID, MBEAN, MBEAN_DESCRIPTION, TYPE |
| Constructor Summary | |
|---|---|
|
VariableZ()
Constructs a new variable. |
|
VariableZ(MBeanAttributeInfo[] attrs)
Constructs a new dynamic MBean with attributes. |
protected |
VariableZ(MBeanAttributeInfo[] attrs,
MBeanOperationInfo[] opers)
Constructs a new dynamic MBean with attributes and operations. |
protected |
VariableZ(MBeanAttributeInfo[] attrs,
MBeanOperationInfo[] opers,
MBeanNotificationInfo[] notifs)
Constructs a new dynamic MBean with attributes, operations and notifications. |
|
VariableZ(String type)
Constructs a new variable with a type. |
| Method Summary | |
|---|---|
Collection |
attributeCollection()
Returns a snapshot collection of attributes. |
protected void |
attributeInfoRegistered(VariableAttributeInfo info)
Callback for a registered attribute info. |
void |
clearAttributeInfo()
Clears all attributes of this variable. |
Object |
clone()
Clones this variable. |
protected Object |
getAttributeValue(VariableAttributeInfo info,
boolean validate)
Gets the attribute value. |
protected Object |
getInternalAttributeValue(VariableAttributeInfo info,
boolean reset)
Gets the internal attribute value. |
MBeanInfo |
getMBeanInfo()
|
MBeanNotificationInfo[] |
getNotificationInfo()
|
void |
postRegister(Boolean done)
|
void |
preDeregister()
|
protected Object |
putInternalAttributeValue(VariableAttributeInfo info,
Object value,
long timestamp,
boolean reset)
Puts the internal attribute value with a modification timestamp. |
protected void |
registerAttributeInfo(OrderedMap map)
Sets the attribute info map. |
| Methods inherited from class org.norther.tammi.core.rt.VariableY |
|---|
addNotificationListener, getCanonicalName, getMBean, getMBeanDelegate, getNamePattern, getQueryPattern, postDeregister, preRegister, registerVariable, removeNotificationListener, removeNotificationListener, sendNotification, setCanonicalName, setNamePattern, setQueryPattern |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VariableZ()
public VariableZ(String type)
type - the variable type.public VariableZ(MBeanAttributeInfo[] attrs)
attrs - the attributes of the MBean.
protected VariableZ(MBeanAttributeInfo[] attrs,
MBeanOperationInfo[] opers)
Operations must be implemented by subclasses.
attrs - the attributes of the MBean.opers - the operations of the MBean.
protected VariableZ(MBeanAttributeInfo[] attrs,
MBeanOperationInfo[] opers,
MBeanNotificationInfo[] notifs)
Operations must be implemented by subclasses.
attrs - the attributes of the MBean.opers - the operations of the MBean.notifs - the notifications of the MBean.| Method Detail |
|---|
public void postRegister(Boolean done)
postRegister in interface MBeanRegistrationpostRegister in class VariableY
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationpreDeregister in class VariableYExceptionpublic Object clone()
Variable
clone in interface Variableclone in class VariableXpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class VariableYpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeangetMBeanInfo in class VariableYpublic void clearAttributeInfo()
clearAttributeInfo in class VariableXpublic Collection attributeCollection()
IllegalStateException - if registered.
protected Object getAttributeValue(VariableAttributeInfo info,
boolean validate)
VariableX
getAttributeValue in class VariableXinfo - the attribute to get.validate - true for validation, false otherwise.
protected Object getInternalAttributeValue(VariableAttributeInfo info,
boolean reset)
VariableX
getInternalAttributeValue in class VariableXinfo - the attribute to set.reset - true to reset access rights, false otherwise.
protected Object putInternalAttributeValue(VariableAttributeInfo info,
Object value,
long timestamp,
boolean reset)
VariableX
putInternalAttributeValue in class VariableXinfo - the attribute to put.value - the attribute value.timestamp - the timestamp.reset - true to reset access rights, false otherwise.
protected void registerAttributeInfo(OrderedMap map)
VariableX
registerAttributeInfo in class VariableXmap - a map of VariableAttributeInfo instances.protected void attributeInfoRegistered(VariableAttributeInfo info)
VariableX
attributeInfoRegistered in class VariableXinfo - the registered attribute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||