public class FBBackupManager extends FBBackupManagerBase implements BackupManager
FBBackupManagerBase.PathSizeStructnoLimitRestore, restorePaths, verboseBUFFER_SIZEBACKUP_CONVERT, BACKUP_EXPAND, BACKUP_IGNORE_CHECKSUMS, BACKUP_IGNORE_LIMBO, BACKUP_METADATA_ONLY, BACKUP_NO_GARBAGE_COLLECT, BACKUP_NON_TRANSPORTABLE, BACKUP_OLD_DESCRIPTIONS, RESTORE_DEACTIVATE_INDEX, RESTORE_NO_SHADOW, RESTORE_NO_VALIDITY, RESTORE_ONE_AT_A_TIME, RESTORE_USE_ALL_SPACE| Constructor and Description | 
|---|
| FBBackupManager()Create a new instance of  FBBackupManagerbased on the default GDSType. | 
| FBBackupManager(GDSType gdsType)Create a new instance of  FBBackupManagerbased on a given GDSType. | 
| FBBackupManager(java.lang.String gdsType)Create a new instance of  FBBackupManagerbased on a given GDSType. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addBackupPath(java.lang.String path,
             int size)Add the file to the backup of the specified size. | 
| protected void | addBackupsToBackupRequestBuffer(FbService service,
                               ServiceRequestBuffer backupSPB)Adds the currentDatabase as a source for the backup operation | 
| protected void | addBackupsToRestoreRequestBuffer(FbService service,
                                ServiceRequestBuffer restoreSPB)Adds the list of backups to be used for the restore operation | 
| void | backupDatabase(int options)Perform the backup operation. | 
| void | clearBackupPaths()Clear the information about backup paths. | 
| void | restoreDatabase(int options)Perform the restore operation. | 
| void | setBackupPath(java.lang.String backupPath)Sets the location of the backup file. | 
| protected boolean | verboseBackup()Whether backing up will produce verbose output | 
addBackupPath, addRestorePath, backupDatabase, backupMetadata, clearRestorePaths, getBackupSRB, getRestoreSRB, restoreDatabase, setDatabase, setRestorePageBufferCount, setRestorePageSize, setRestoreReadOnly, setRestoreReplace, setVerboseattachDatabase, attachServiceManager, createRequestBuffer, executeServicesOperation, executeServicesOperation, getAuthPlugins, getCharSet, getDatabase, getDbCryptConfig, getHost, getLogger, getPassword, getPort, getServerVersion, getServiceName, getUser, getWireCrypt, isWireCompression, queueService, setAuthPlugins, setCharSet, setDbCryptConfig, setHost, setLogger, setPassword, setPort, setUser, setWireCompression, setWireCryptclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBackupPath, addRestorePath, backupDatabase, backupMetadata, clearRestorePaths, restoreDatabase, setDatabase, setRestorePageBufferCount, setRestorePageSize, setRestoreReadOnly, setRestoreReplace, setVerbosegetAuthPlugins, getCharSet, getDatabase, getDbCryptConfig, getHost, getLogger, getPassword, getPort, getServerVersion, getUser, getWireCrypt, isWireCompression, setAuthPlugins, setCharSet, setDbCryptConfig, setHost, setLogger, setPassword, setPort, setUser, setWireCompression, setWireCryptpublic FBBackupManager()
FBBackupManager based on the default GDSType.public FBBackupManager(java.lang.String gdsType)
FBBackupManager based on a given GDSType.gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVEpublic FBBackupManager(GDSType gdsType)
FBBackupManager based on a given GDSType.gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVEprotected boolean verboseBackup()
verboseBackup in class FBBackupManagerBasepublic void setBackupPath(java.lang.String backupPath)
BackupManagerBackupManager.addBackupPath(String, int)
 method after calling this one.setBackupPath in interface BackupManagerbackupPath - the location of the backup file.for multi-file backups.public void addBackupPath(java.lang.String path,
                 int size)
BackupManageraddBackupPath in interface BackupManagerpath - path to the backup file.size - max size of the file in bytes.public void clearBackupPaths()
BackupManagerBackupManager.addBackupPath(String, int) or
 BackupManager.addBackupPath(String) methods.clearBackupPaths in interface BackupManagerpublic void backupDatabase(int options)
                    throws java.sql.SQLException
BackupManagerbackupDatabase in interface BackupManageroptions - a bitmask combination of the BACKUP_* constants for the backup operationjava.sql.SQLException - if a database error occurs during the backuppublic void restoreDatabase(int options)
                     throws java.sql.SQLException
BackupManagerrestoreDatabase in interface BackupManageroptions - A bitmask combination of RESTORE_* constantsjava.sql.SQLException - if a database error occurs during the restoreprotected void addBackupsToBackupRequestBuffer(FbService service, ServiceRequestBuffer backupSPB) throws java.sql.SQLException
addBackupsToBackupRequestBuffer in class FBBackupManagerBasebackupSPB - The buffer to be used during the backup operationjava.sql.SQLExceptionprotected void addBackupsToRestoreRequestBuffer(FbService service, ServiceRequestBuffer restoreSPB)
addBackupsToRestoreRequestBuffer in class FBBackupManagerBaserestoreSPB - The buffer to be used during the restore operationCopyright © 2001-2020 Jaybird (Firebird JDBC/JCA) team. All rights reserved.