org.qi4j.entitystore.file
Class FileEntityStoreMixin

java.lang.Object
  extended by org.qi4j.entitystore.file.FileEntityStoreMixin
All Implemented Interfaces:
Activatable, MapEntityStore, BackupRestore

public class FileEntityStoreMixin
extends Object
implements Activatable, MapEntityStore, BackupRestore

JDBM implementation of MapEntityStore


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.entitystore.map.MapEntityStore
MapEntityStore.JSONKeys, MapEntityStore.MapChanger, MapEntityStore.MapChanges
 
Constructor Summary
FileEntityStoreMixin()
           
 
Method Summary
 void activate()
          This is invoked on the service when the instance is being activated
 void applyChanges(MapEntityStore.MapChanges changes)
           
 Input<String,IOException> backup()
          Input that allows data from the entity store to be backed up.
 Input<Reader,IOException> entityStates()
           
 Reader get(EntityReference entityReference)
           
 void passivate()
          This is invoked on the service when the instance is being passivated
 Output<String,IOException> restore()
          Output that allows data to be restored from a backup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileEntityStoreMixin

public FileEntityStoreMixin()
Method Detail

activate

public void activate()
              throws Exception
Description copied from interface: Activatable
This is invoked on the service when the instance is being activated

Specified by:
activate in interface Activatable
Throws:
Exception - if service could not be activated

passivate

public void passivate()
               throws Exception
Description copied from interface: Activatable
This is invoked on the service when the instance is being passivated

Specified by:
passivate in interface Activatable
Throws:
Exception - if the service could not be passivated

get

public Reader get(EntityReference entityReference)
           throws EntityStoreException
Specified by:
get in interface MapEntityStore
Throws:
EntityStoreException

applyChanges

public void applyChanges(MapEntityStore.MapChanges changes)
                  throws IOException
Specified by:
applyChanges in interface MapEntityStore
Throws:
IOException

backup

public Input<String,IOException> backup()
Description copied from interface: BackupRestore
Input that allows data from the entity store to be backed up.

Specified by:
backup in interface BackupRestore
Returns:

restore

public Output<String,IOException> restore()
Description copied from interface: BackupRestore
Output that allows data to be restored from a backup.

Specified by:
restore in interface BackupRestore

entityStates

public Input<Reader,IOException> entityStates()
Specified by:
entityStates in interface MapEntityStore