Package com.openindex.openestate.tool
Class ImmoToolBackupTask
- java.lang.Object
-
- javax.swing.SwingWorker<T,V>
-
- com.openindex.openestate.tool.ImmoToolTask<Boolean,Void>
-
- com.openindex.openestate.tool.ImmoToolBackupTask
-
- All Implemented Interfaces:
PropertyChangeListener
,Runnable
,Future<Boolean>
,RunnableFuture<Boolean>
,EventListener
public class ImmoToolBackupTask extends ImmoToolTask<Boolean,Void>
ImmoToolBackupTask.- Author:
- Andreas Rudolph
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openindex.openestate.tool.ImmoToolTask
ImmoToolTask.Adapter, ImmoToolTask.Callback, ImmoToolTask.Listener
-
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
-
-
Constructor Summary
Constructors Constructor Description ImmoToolBackupTask(AbstractDbDriver dbDriver, DbAdminHandler adminHandler, File backupArchive)
ImmoToolBackupTask(ImmoToolProject project, File backupArchive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Boolean
doInBackground()
static DateFormat
getDateFormat()
static boolean
isBackupSupported(AbstractDbDriver driver, DbAdminHandler adminHandler)
static boolean
isBackupSupported(ImmoToolProject project)
protected void
removeOldBackups(ImmoToolLocalProject project)
-
Methods inherited from class com.openindex.openestate.tool.ImmoToolTask
addListener, cancelled, checkCancelled, createCallback, done, executeAndWait, executeAndWait, failed, finished, getDescription, getId, getMessage, getParentWindow, getTaskDialog, getTitle, isCancelException, isPending, isStarted, process, propertyChange, removeListener, setDescription, setMessage, setParentWindow, setProgress, setProgress, setProgress, setProgress, setTaskDialog, setTitle, succeeded
-
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
-
-
-
-
Constructor Detail
-
ImmoToolBackupTask
public ImmoToolBackupTask(ImmoToolProject project, File backupArchive)
-
ImmoToolBackupTask
public ImmoToolBackupTask(AbstractDbDriver dbDriver, DbAdminHandler adminHandler, File backupArchive)
-
-
Method Detail
-
doInBackground
protected Boolean doInBackground() throws Exception
- Specified by:
doInBackground
in classImmoToolTask<Boolean,Void>
- Throws:
Exception
-
getDateFormat
public static DateFormat getDateFormat()
-
isBackupSupported
public static boolean isBackupSupported(ImmoToolProject project)
-
isBackupSupported
public static boolean isBackupSupported(AbstractDbDriver driver, DbAdminHandler adminHandler)
-
removeOldBackups
protected void removeOldBackups(ImmoToolLocalProject project)
-
-