|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.BackupManager
public class BackupManager
A backup manager for JE backends.
Field Summary | |
---|---|
static java.lang.String |
BACKUP_BASE_FILENAME
The common prefix for archive files. |
static java.lang.String |
PROPERTY_LAST_LOGFILE_NAME
The name of the property that holds the name of the latest log file at the time the backup was created. |
static java.lang.String |
PROPERTY_LAST_LOGFILE_SIZE
The name of the property that holds the size of the latest log file at the time the backup was created. |
static java.lang.String |
ZIPENTRY_EMPTY_PLACEHOLDER
The name of a dummy entry in the backup archive file that will act as a placeholder in case a backup is done on an empty backend. |
static java.lang.String |
ZIPENTRY_UNCHANGED_LOGFILES
The name of the entry in an incremental backup archive file containing a list of log files that are unchanged since the previous backup. |
Constructor Summary | |
---|---|
BackupManager(java.lang.String backendID)
Construct a backup manager for a JE backend. |
Method Summary | |
---|---|
void |
createBackup(java.io.File backendDir,
BackupConfig backupConfig)
Create a backup of the JE backend. |
void |
removeBackup(BackupDirectory backupDir,
java.lang.String backupID)
Removes the specified backup if it is possible to do so. |
void |
restoreBackup(java.io.File backendDir,
RestoreConfig restoreConfig)
Restore a JE backend from backup, or verify the backup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BACKUP_BASE_FILENAME
public static final java.lang.String PROPERTY_LAST_LOGFILE_NAME
public static final java.lang.String PROPERTY_LAST_LOGFILE_SIZE
public static final java.lang.String ZIPENTRY_UNCHANGED_LOGFILES
public static final java.lang.String ZIPENTRY_EMPTY_PLACEHOLDER
Constructor Detail |
---|
public BackupManager(java.lang.String backendID)
backendID
- The ID of the backend instance for which a backup
manager is required.Method Detail |
---|
public void createBackup(java.io.File backendDir, BackupConfig backupConfig) throws DirectoryException
backendDir
- The directory of the backend instance for
which the backup is required.backupConfig
- The configuration to use when performing the backup.
DirectoryException
- If a Directory Server error occurs.public void restoreBackup(java.io.File backendDir, RestoreConfig restoreConfig) throws DirectoryException
backendDir
- The configuration of the backend instance to be
restored.restoreConfig
- The configuration to use when performing the restore.
DirectoryException
- If a Directory Server error occurs.public void removeBackup(BackupDirectory backupDir, java.lang.String backupID) throws DirectoryException
backupDir
- The backup directory structure with which the
specified backup is associated.backupID
- The backup ID for the backup to be removed.
DirectoryException
- If it is not possible to remove the specified
backup for some reason (e.g., no such backup
exists or there are other backups that are
dependent upon it).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |