Modifier and Type | Field and Description |
---|---|
protected boolean |
persistLoaded
Flag with indication that scalar was loaded from persistent storage.
|
Constructor and Description |
---|
FValueNode(java.lang.String name,
org.snmp4j.smi.OID oid) |
Modifier and Type | Method and Description |
---|---|
void |
addRestoreDefaultListener(FRestoreDefaultListener l)
Registers the given observer to begin receiving "restore default" events
when changes are made to the managed object.
|
void |
fireRestoreDefaultEvent()
Fires RESTORE DEFAULT event.
|
boolean |
isPersistLoaded()
Returns flag that this node was loaded from persistent storage.
|
abstract boolean |
isVolatile()
Returns volatile flag.
|
protected abstract void |
loadPersistValue()
Loads persistent value into the scalar/table.
|
void |
removeRestoreDefaultListener(FRestoreDefaultListener l)
Unregisters the given observer to stop receiving "restore default" events
when changes are made to the managed object.
|
void |
setVolatile(boolean volatileNode)
Sets the volatile flag for this node.
|
protected abstract void |
setVolatilePrivate(boolean isVolatile) |
getFID, getFIDtoString, getName, getOID, getOIDSize, getPersistStorage, makeFException, makeFException, setAgent
protected boolean persistLoaded
public void addRestoreDefaultListener(FRestoreDefaultListener l)
l
- the observer to registerpublic void removeRestoreDefaultListener(FRestoreDefaultListener l)
l
- the observer to unregisterpublic boolean isPersistLoaded()
protected abstract void loadPersistValue()
public void setVolatile(boolean volatileNode)
false
to load persistent value
for scalars and tables.volatileNode
- set to true
to prevent saving the state of this object
in persistency storage by agent when the value is modified
from the MIB browser.protected abstract void setVolatilePrivate(boolean isVolatile)
public void fireRestoreDefaultEvent() throws FException
FException
- failure to restore default event.public abstract boolean isVolatile()