public abstract class Persistence<P extends PersistenceConnector> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected P |
persistenceConnector |
protected UUID |
uuid |
| Constructor and Description |
|---|
Persistence(P persistenceConnector,
String name,
UUID uuid)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addEvolution(long timestamp,
PluginState pluginState)
Persist the new state of plugin
|
PluginState |
getState() |
protected final String name
protected final P extends PersistenceConnector persistenceConnector
protected final UUID uuid
public Persistence(P persistenceConnector, String name, UUID uuid)
persistenceConnector - the PersistenceConnector which
created and/or opened the connection to DBname - the name get from PluginDeclaration) related to the
running Pluginuuid - the execution identifierpublic abstract void addEvolution(long timestamp,
PluginState pluginState)
throws Exception
timestamp - the time of the new PluginStatepluginState - the PluginState valueException - if failspublic PluginState getState() throws Exception
PluginState valueException - if fails to retrieve the PluginState from DBCopyright © 2015. All Rights Reserved.