Class PrometheusThreadLoadBackup
java.lang.Object
io.github.tonywasher.joceanus.prometheus.threads.PrometheusThreadLoadBackup
- All Implemented Interfaces:
TethysUIThread<PrometheusDataSet>
Thread to load changes from an encrypted backup. Once the backup is loaded, the current database
is loaded and the backup is re-based onto the database so that a correct list of additions,
changes and deletions is built. These changes remain in memory and should be committed to the
database later.
- Author:
- Tony Washer
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor (Event Thread). -
Method Summary
Modifier and TypeMethodDescriptionobtain the task name.performTask(TethysUIThreadManager pManager) Perform the task.voidprocessResult(PrometheusDataSet pResult) process result.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.thread.TethysUIThread
interruptForCancel, prepareTask
-
Constructor Details
-
PrometheusThreadLoadBackup
Constructor (Event Thread).- Parameters:
pControl- data control
-
-
Method Details
-
getTaskName
Description copied from interface:TethysUIThreadobtain the task name.- Specified by:
getTaskNamein interfaceTethysUIThread<PrometheusDataSet>- Returns:
- the task name
-
performTask
Description copied from interface:TethysUIThreadPerform the task.- Specified by:
performTaskin interfaceTethysUIThread<PrometheusDataSet>- Parameters:
pManager- the thread manager- Returns:
- the result
- Throws:
OceanusException- on error
-
processResult
Description copied from interface:TethysUIThreadprocess result.- Specified by:
processResultin interfaceTethysUIThread<PrometheusDataSet>- Parameters:
pResult- the result
-