public class JdbmEntityStoreMixin extends Object implements JdbmEntityStoreActivation, MapEntityStore, BackupRestore
JdbmEntityStoreActivation.ActivatorMapEntityStore.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, waitrestorepublic void setUpJdbm()
throws Exception
setUpJdbm in interface JdbmEntityStoreActivationExceptionpublic void tearDownJdbm()
throws Exception
tearDownJdbm in interface JdbmEntityStoreActivationException@ReadLock public Reader get(EntityReference entityReference) throws EntityStoreException
get in interface MapEntityStoreentityReference - The reference to the entity that we want to get.EntityStoreException@WriteLock public void applyChanges(MapEntityStore.MapChanges changes) throws IOException
applyChanges in interface MapEntityStoreIOExceptionpublic Stream<Reader> entityStates()
entityStates in interface MapEntityStorepublic Stream<String> backup()
BackupRestorebackup in interface BackupRestorepublic void restore(Stream<String> states)
BackupRestorerestore in interface BackupRestorestates - Stream of serialized entity states