public class BackupsRootFolder
extends java.lang.Object
| Constructor and Description |
|---|
BackupsRootFolder() |
| Modifier and Type | Method and Description |
|---|---|
static BackupFolder |
createBackupFolder()
Creates a new backup folder in the BackupsRoot folder.
|
static <T extends BackupFolder> |
getLastBackup(java.lang.Class<T> backupType,
java.io.FileFilter... filter)
Gets the last modified backup in the BackupsRoot folder
|
static void |
manageOldBackups(java.io.FileFilter... filter)
Manages the backup folder as a circular queue by maintaining only the latest N backups.
|
public static BackupFolder createBackupFolder() throws java.io.IOException
java.io.IOException - if the creation failspublic static void manageOldBackups(java.io.FileFilter... filter)
throws java.io.IOException
filter - the file filter to identify valid backups in the BackupsRootjava.io.IOExceptionpublic static <T extends BackupFolder> T getLastBackup(java.lang.Class<T> backupType, java.io.FileFilter... filter) throws java.io.IOException
T - the class of the backup folderbackupType - the type classfilter - the file filter to identify valid backups in the BackupsRootjava.io.IOException