Methods Summary |
---|
public void | clearState()If the concrete class decides not to provide the implementation of this
method, then it's OK. Some of the examples where we may decide to not
provide the implementation is the connection state. Irrespective of
the call to clearState, the connection state will be showing the
currect state of the connection.
NOTE: This method is only used to clear the Monitored Attribute state,
not the real state of the system itself.
|
public MonitoredAttributeInfo | getAttributeInfo()Gets the MonitoredAttributeInfo for the attribute.
return attributeInfo;
|
public java.lang.String | getName()Gets the name of the attribute.
return name;
|
public abstract java.lang.Object | getValue()This method should be implemented by the concrete class.
|
void | setMonitoredAttributeInfo(MonitoredAttributeInfo info)A Package Private convenience method for setting MonitoredAttributeInfo
for this Monitored Attribute.
this.attributeInfo = info;
|
public void | setValue(java.lang.Object value)This method should be implemented by the concrete class only if the
attribute is writable. If the attribute is not writable and if this
method called, it will result in an IllegalStateException.
if( !attributeInfo.isWritable() ) {
throw new IllegalStateException(
"The Attribute " + name + " is not Writable..." );
}
throw new IllegalStateException(
"The method implementation is not provided for the attribute " +
name );
|