|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.willuhn.jameica.backup.BackupEngine
public class BackupEngine
Klasse mit statischen Funktionen, die das Backup ubernehmen.
| Constructor Summary | |
|---|---|
BackupEngine()
|
|
| Method Summary | |
|---|---|
static java.io.File[] |
doBackup(de.willuhn.util.ProgressMonitor monitor,
boolean rotate)
Erstellt ein frisches Backup. |
static void |
doRestore(de.willuhn.util.ProgressMonitor monitor)
Fuehrt das Backup-Restore durch. |
static BackupFile[] |
getBackups(java.lang.String dir)
Liefert eine Liste der bisher erstellten Backups. |
static BackupFile |
getCurrentRestore()
Liefert das ggf aktuell zur Wiederherstellung vorgemerkte Backup. |
static void |
markForRestore(BackupFile backup)
Markiert das uebergebene Backup fuer die Wiederherstellung. |
static void |
undoRestoreMark()
Macht eine ggf. vorhandene Auswahl der Backup-Wiederherstellung rueckgaengig. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BackupEngine()
| Method Detail |
|---|
public static BackupFile[] getBackups(java.lang.String dir)
throws de.willuhn.util.ApplicationException
dir - das Verzeichnis, in dem nach Backups gesucht werden soll.
Ist es nicht angegeben, wird das aktuelle Default-Verzeichnis verwendet.
de.willuhn.util.ApplicationExceptionpublic static void undoRestoreMark()
public static void markForRestore(BackupFile backup)
throws de.willuhn.util.ApplicationException
backup - das zurueckzusichernde Backup.
de.willuhn.util.ApplicationException
public static BackupFile getCurrentRestore()
throws de.willuhn.util.ApplicationException
de.willuhn.util.ApplicationException
public static void doRestore(de.willuhn.util.ProgressMonitor monitor)
throws de.willuhn.util.ApplicationException
monitor -
de.willuhn.util.ApplicationException
public static java.io.File[] doBackup(de.willuhn.util.ProgressMonitor monitor,
boolean rotate)
throws de.willuhn.util.ApplicationException
monitor - ein Progressmonitor fuer die Ausgabe des Fortschritts.rotate - true, wenn alte Backups rotiert werden sollen.
de.willuhn.util.ApplicationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||