org.android.activityminer.logic.util
Class ModelFileExportThread
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.ModelFileExportThread
- All Implemented Interfaces:
- ObservableEventSource<TaskFinishedEvent>, ObserverRegistration<TaskFinishedEvent>, WorkerThread, Runnable
public class ModelFileExportThread
- extends FileCopyThread
The model file export 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 |
ModelFileExportThread
private ModelFileExportThread(Context context,
File srcFile,
File destFile,
Class<? extends Activity> intentReceiver)
- Constructor
- Parameters:
context
- the application contextsrcFile
- the source filedestFile
- the destination 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,
File destFile,
EventObserver<TaskFinishedEvent> finishedObserver,
Class<? extends Activity> intentReceiver)
- Does create and execute a database export thread.
- Parameters:
context
- the context of the callersrcFile
- the source filedestFile
- the destination filefinishedObserver
- the finished event observerintentReceiver
- the intent receiver class
- Returns:
- the created file database export thread