|
||||||||||
| 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 java.lang.String |
BACKUPSET_ZIPFILE_PREFIX
|
static java.lang.String |
BACKUPSET_ZIPFILE_SUFFIX
|
| Constructor Summary | |
|---|---|
BackupSet(java.io.File initial)
|
|
| Method Summary | |
|---|---|
int |
compareTo(BackupSet other)
Compares the backup sets by using the sets' associated full backups' backup date. |
boolean |
containsBackupForDate(java.util.Date date)
|
boolean |
containsDirectory(java.io.File directory)
|
void |
delete()
|
void |
deleteUnzipDir()
Deletes the directory used for unzipping this BackupSet. |
java.util.List<java.io.File> |
getDiffBackups()
|
java.util.List<java.lang.String> |
getDiffBackupsNames()
|
java.io.File |
getFullBackup()
|
java.lang.String |
getFullBackupName()
|
java.io.File |
getUnzipDir()
|
boolean |
isInZipFile()
|
boolean |
isValid()
|
java.lang.String |
toString()
|
BackupSet |
unzip()
Unzips this backup set if it was initialized from a ZIP file. |
BackupSet |
unzipTo(java.io.File directory)
Unzips this backup set into a directory within the specified directory if it was initialized from a ZIP file. |
java.io.File |
zipTo(java.io.File directory)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BACKUPSET_ZIPFILE_PREFIX
public static final java.lang.String BACKUPSET_ZIPFILE_SUFFIX
| Constructor Detail |
|---|
public BackupSet(java.io.File initial)
initial - either a FULL or DIFF backup directory, or a BackupSet ZIP file.| Method Detail |
|---|
public boolean isValid()
public void delete()
throws java.io.IOException
java.io.IOExceptionpublic void deleteUnzipDir()
public java.lang.String toString()
toString in class java.lang.Object
public BackupSet unzip()
throws java.io.IOException
java.io.IOException
public BackupSet unzipTo(java.io.File directory)
throws java.io.IOException
directory -
java.io.IOException
public java.io.File zipTo(java.io.File directory)
throws java.io.IOException
directory -
java.io.IOExceptionpublic int compareTo(BackupSet other)
compareTo in interface java.lang.Comparable<BackupSet>public boolean containsDirectory(java.io.File directory)
directory -
public boolean containsBackupForDate(java.util.Date date)
date -
public boolean isInZipFile()
public java.io.File getFullBackup()
public java.lang.String getFullBackupName()
public java.util.List<java.io.File> getDiffBackups()
public java.util.List<java.lang.String> getDiffBackupsNames()
public java.io.File getUnzipDir()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||