|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.informationsystem.collector.impl.xmlstorage.backup.BackupsRootFolder
public class BackupsRootFolder
An abstract representation of the backups root folder
Constructor Summary | |
---|---|
BackupsRootFolder()
|
Method Summary | ||
---|---|---|
static BackupFolder |
createBackupFolder()
Creates a new backup folder in the BackupsRoot folder. |
|
static
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackupsRootFolder()
Method Detail |
---|
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 BackupsRoot
java.io.IOException
public 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 BackupsRoot
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |