public class JdbmEntityStoreMixin extends Object implements JdbmEntityStoreActivation, MapEntityStore, BackupRestore
JdbmEntityStoreActivation.Activator
MapEntityStore.MapChange, MapEntityStore.MapChanger, MapEntityStore.MapChanges
Constructor and Description |
---|
JdbmEntityStoreMixin() |
Modifier and Type | Method and Description |
---|---|
void |
applyChanges(MapEntityStore.MapChanges changes) |
Stream<String> |
backup()
Backup entity states.
|
Stream<Reader> |
entityStates() |
Reader |
get(EntityReference entityReference) |
void |
restore(Stream<String> states)
Restore entity states.
|
void |
setUpJdbm() |
void |
tearDownJdbm() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
restore
public void setUpJdbm() throws Exception
setUpJdbm
in interface JdbmEntityStoreActivation
Exception
public void tearDownJdbm() throws Exception
tearDownJdbm
in interface JdbmEntityStoreActivation
Exception
@ReadLock public Reader get(EntityReference entityReference) throws EntityStoreException
get
in interface MapEntityStore
entityReference
- The reference to the entity that we want to get.EntityStoreException
@WriteLock public void applyChanges(MapEntityStore.MapChanges changes) throws IOException
applyChanges
in interface MapEntityStore
IOException
public Stream<Reader> entityStates()
entityStates
in interface MapEntityStore
public Stream<String> backup()
BackupRestore
backup
in interface BackupRestore
public void restore(Stream<String> states)
BackupRestore
restore
in interface BackupRestore
states
- Stream of serialized entity states