Package org.scictrl.csshell.epics.server
Interface PersistentValueProcessor
- All Superinterfaces:
ValueProcessor
Implemented by those ValueProcessors, which want to be restored to a previous state after
server is restarted. This functionality is active to those processors,
which return
true
for method isPersistent() during activation procedure.- Author:
- igor@scictrl.com
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Presidency is only enabled, if this call returnstrue
after configuration has been applied to value producer.void
restore
(org.apache.commons.configuration.Configuration store) ValueProcessor has a chance to restore it's internal state after server has been restart.void
store
(org.apache.commons.configuration.Configuration store) Stores internal state so it could be restored after server restart.Methods inherited from interface org.scictrl.csshell.epics.server.ValueProcessor
activate, configure, getName, getRecord, getTimestamp, getTrigger, getType, getValue, process, setValue
-
Method Details
-
store
void store(org.apache.commons.configuration.Configuration store) Stores internal state so it could be restored after server restart.- Parameters:
store
- the persistence configuration store
-
restore
void restore(org.apache.commons.configuration.Configuration store) ValueProcessor has a chance to restore it's internal state after server has been restart. This is called after configuration call and before activation call.- Parameters:
store
- the persistence configuration store
-
isPersistent
boolean isPersistent()Presidency is only enabled, if this call returnstrue
after configuration has been applied to value producer.- Returns:
- a boolean
-