de.unikassel.android.sdcframework.persistence
Class AbstractDatabaseFullStrategy

Package class diagram package AbstractDatabaseFullStrategy
java.lang.Object
  extended by de.unikassel.android.sdcframework.util.AbstractChainWorker<PersistentStorageManager>
      extended by de.unikassel.android.sdcframework.persistence.AbstractDatabaseFullStrategy
All Implemented Interfaces:
DatabaseFullStrategy, ChainWorker<PersistentStorageManager>
Direct Known Subclasses:
DeleteSamplesStrategy, NotificationStrategy, StopServiceStrategy, WaitStrategy

public abstract class AbstractDatabaseFullStrategy
extends AbstractChainWorker<PersistentStorageManager>
implements DatabaseFullStrategy

Abstract base class for a database full strategy type. It is calling its successor to solve the problem if it fails.

The execution method is implemented as the try to process samples again. Extending strategies should override the process(PersistentStorageManager) method to implement an own strategy and call the method of the super class in the end for another try to store samples.

See Also:
WaitStrategy, DeleteSamplesStrategy, NotificationStrategy, StopServiceStrategy

Constructor Summary
AbstractDatabaseFullStrategy()
          Constructor
 
Method Summary
protected  boolean process(PersistentStorageManager storageManager)
          Processing method of the worker
 
Methods inherited from class de.unikassel.android.sdcframework.util.AbstractChainWorker
doWork, getSuccessor, setSuccessor, withSuccessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ChainWorker
doWork, getSuccessor, setSuccessor, withSuccessor
 

Constructor Detail

AbstractDatabaseFullStrategy

public AbstractDatabaseFullStrategy()
Constructor

Method Detail

process

protected boolean process(PersistentStorageManager storageManager)
Description copied from class: AbstractChainWorker
Processing method of the worker

Specified by:
process in class AbstractChainWorker<PersistentStorageManager>
Parameters:
storageManager - the client
Returns:
true if successful