org.android.activityminer.logic.util
Class DatabaseImportThread
java.lang.Object
java.lang.Thread
de.unikassel.android.sdcframework.util.AbstractWorkerThread
org.android.activityminer.app.util.ObservableWorkerThreadWithProgressNotification
org.android.activityminer.logic.util.FileCopyThread
org.android.activityminer.logic.util.DatabaseImportThread
- All Implemented Interfaces:
- ObservableEventSource<TaskFinishedEvent>, ObserverRegistration<TaskFinishedEvent>, WorkerThread, Runnable
public class DatabaseImportThread
- extends FileCopyThread
The database import thread.
Methods inherited from class org.android.activityminer.app.util.ObservableWorkerThreadWithProgressNotification |
broadcastProgress, doCleanUp, getApplicationContext, getFinalResult, getMaxProgress, getNotification, getTaskTitle, hasObservers, incrementAndNotifyProgress, incrementAndNotifyProgress, notify, notifyProgress, notifyProgress, registerEventObserver, removeAllObservers, setMaxProgress, unregisterEventObserver |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
DatabaseImportThread
private DatabaseImportThread(Context context,
File srcFile,
Class<? extends Activity> intentReceiver)
- Constructor
- Parameters:
context
- the application contextsrcFile
- the source fileintentReceiver
- the intent receiver class
getResultNotificationMsg
public String getResultNotificationMsg()
- Description copied from class:
ObservableWorkerThreadWithProgressNotification
- Getter for the result notification message
- Overrides:
getResultNotificationMsg
in class FileCopyThread
- Returns:
- the result notification message
createAndRun
public static final ObservableWorkerThreadWithProgressNotification createAndRun(Context context,
File srcFile,
EventObserver<TaskFinishedEvent> finishedObserver,
Class<? extends Activity> intentReceiver)
- Does create and execute a database import thread.
- Parameters:
context
- the context of the callersrcFile
- the source filefinishedObserver
- the finished event observerintentReceiver
- the intent receiver class
- Returns:
- the created database import thread