|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.hudson.plugins.thinbackup.backup.BackupSet
public class BackupSet
A BackupSet contains references to a full and zero or more diff backups. It can be created from either a reference to a full or diff backup directory or from a reference to a ZIP file. If it is created from a ZIP file, the BackupSet must be unzipped before the data contained can be actually accessed (it is never unzipped automatically).
| Field Summary | |
|---|---|
static String |
BACKUPSET_ZIPFILE_PREFIX
|
| Constructor Summary | |
|---|---|
BackupSet(File initial)
|
|
| Method Summary | |
|---|---|
int |
compareTo(BackupSet other)
Compares the backup sets by using the sets' associated full backups' backup date. |
boolean |
containsBackupForDate(Date date)
|
boolean |
containsDirectory(File directory)
|
void |
delete()
|
void |
deleteUnzipDir()
Deletes the directory used for unzipping this BackupSet. |
List<File> |
getDiffBackups()
|
List<String> |
getDiffBackupsNames()
|
File |
getFullBackup()
|
String |
getFullBackupName()
|
File |
getUnzipDir()
|
boolean |
isInZipFile()
|
boolean |
isValid()
|
String |
toString()
|
BackupSet |
unzip()
Unzips this backup set if it was initialized from a ZIP file. |
BackupSet |
unzipTo(File directory)
Unzips this backup set into a directory within the specified directory if it was initialized from a ZIP file. |
File |
zipTo(File directory)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String BACKUPSET_ZIPFILE_PREFIX
| Constructor Detail |
|---|
public BackupSet(File initial)
initial - either a FULL or DIFF backup directory, or a BackupSet ZIP file.| Method Detail |
|---|
public boolean isValid()
public void delete()
throws IOException
IOExceptionpublic void deleteUnzipDir()
public String toString()
toString in class Object
public BackupSet unzip()
throws IOException
IOException
public BackupSet unzipTo(File directory)
throws IOException
directory -
IOExceptionpublic File zipTo(File directory)
directory -
public int compareTo(BackupSet other)
compareTo in interface Comparable<BackupSet>public boolean containsDirectory(File directory)
directory -
public boolean containsBackupForDate(Date date)
date -
public boolean isInZipFile()
public File getFullBackup()
public String getFullBackupName()
public List<File> getDiffBackups()
public List<String> getDiffBackupsNames()
public File getUnzipDir()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||