public interface HotBackupCapability extends Capability
in-memory logging
is enabled,
backups cannot be performed. To restore from a hot backup, it is
critical that a full recovery be performed. Pass true to setRunFullRecovery
to
enable. BDB-JE
does not require this, however.
To support incremental backups against the native
BDB product
, old log files must be kept. Pass true to setKeepOldLogFiles
.
Modifier and Type | Interface and Description |
---|---|
static interface |
HotBackupCapability.Backup |
Modifier and Type | Method and Description |
---|---|
HotBackupCapability.Backup |
startBackup()
Starts the backup by disabling log file deletion.
|
HotBackupCapability.Backup |
startBackup(boolean deleteOldLogFiles)
Starts the backup by disabling log file deletion.
|
HotBackupCapability.Backup |
startIncrementalBackup(long lastLogNumber)
Starts an incremental backup.
|
HotBackupCapability.Backup |
startIncrementalBackup(long lastLogNumber,
boolean deleteOldLogFiles)
Starts an incremental backup.
|
HotBackupCapability.Backup startBackup() throws RepositoryException
java.lang.IllegalStateException
- if configuration doesn't support backupsRepositoryException
HotBackupCapability.Backup startBackup(boolean deleteOldLogFiles) throws RepositoryException
Caution should be observed when deleting old log files by force, if an external process is also performing backups. If a concurrent backup is issued by this repository instance, log file deletion is suppressed.
deleteOldLogFiles
- deletes log files that are no longer in use and
have been backed up. False by default.java.lang.IllegalStateException
- if configuration doesn't support backupsRepositoryException
HotBackupCapability.Backup startIncrementalBackup(long lastLogNumber) throws RepositoryException
lastLogNumber
- number of the last log file that was copied in a previous backupjava.lang.IllegalArgumentException
- if lastLogNumber is negativejava.lang.IllegalStateException
- if configuration doesn't support backupsRepositoryException
HotBackupCapability.Backup startIncrementalBackup(long lastLogNumber, boolean deleteOldLogFiles) throws RepositoryException
Caution should be observed when deleting old log files by force, if an external process is also performing backups. If a concurrent backup is issued by this repository instance, log file deletion is suppressed.
lastLogNumber
- number of the last log file that was copied in a previous backup.deleteOldLogFiles
- deletes log files that are no longer in use and
have been backed up. False by default.java.lang.IllegalArgumentException
- if lastLogNumber is negativejava.lang.IllegalStateException
- if configuration doesn't support backupsRepositoryException
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.