de.unikassel.android.sdcframework.persistence.facade
Interface PersistentStorageManager

Package class diagram package PersistentStorageManager
All Superinterfaces:
AsynchrounousSampleObserver, DatabaseManager, DelegatingSampleObserver, LifeCycleObject, WorkerThread
All Known Implementing Classes:
PersistentStorageManagerImpl

public interface PersistentStorageManager
extends AsynchrounousSampleObserver, DatabaseManager

Interface for the persistent storage manager an asynchronous sample observer, responsible for the persistent storage task.

See Also:
PersistentStorageManagerImpl

Method Summary
 boolean doExecuteCurrentCommand()
          Does execute the current outstanding database command
 long getSavedRecordCount()
          Getter for the savedRecordCount
 void updateDatabaseFullStrategy(Context context, ServiceConfiguration config, Class<? extends Activity> controlActivityClass)
          Method to update internal database full strategy chain by configuration of the service
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.WorkerThread
doTerminate, hasTerminated, isLogging, isWorking, setLogging, startWork, stopWork
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.LifeCycleObject
onCreate, onDestroy, onPause, onResume
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.DelegatingSampleObserver
getObserver
 
Methods inherited from interface de.unikassel.android.sdcframework.persistence.facade.DatabaseManager
doDeleteOldestSamplesInDatabase, doExecuteCommand, getMaximumDatabaseSize, getRecordCountInDatabase, setMaximumDatabaseSize
 

Method Detail

updateDatabaseFullStrategy

void updateDatabaseFullStrategy(Context context,
                                ServiceConfiguration config,
                                Class<? extends Activity> controlActivityClass)
Method to update internal database full strategy chain by configuration of the service

Parameters:
context - the application context
config - the current service configuration to update from
controlActivityClass - the control activity class or null

getSavedRecordCount

long getSavedRecordCount()
Getter for the savedRecordCount

Returns:
the savedRecordCount

doExecuteCurrentCommand

boolean doExecuteCurrentCommand()
Does execute the current outstanding database command

Returns:
true if successful, false otherwise