public class FBNBackupManager extends FBServiceManager implements NBackupManager
BUFFER_SIZE| Constructor and Description |
|---|
FBNBackupManager()
Create a new instance of
FBNBackupManager based on the default GDSType. |
FBNBackupManager(GDSType gdsType)
Create a new instance of
FBNBackupManager based on a given GDSType. |
FBNBackupManager(java.lang.String gdsType)
Create a new instance of
FBNBackupManager based on a given GDSType. |
| Modifier and Type | Method and Description |
|---|---|
void |
addBackupFile(java.lang.String backupFile)
Add the file to the backup of the specified size.
|
void |
backupDatabase()
Perform the backup operation.
|
void |
clearBackupFiles()
Clear the information about backup files.
|
void |
restoreDatabase()
Perform the restore operation.
|
void |
setBackupFile(java.lang.String backupFile)
Sets the location of the backup file.
|
void |
setBackupLevel(int backupLevel)
Sets the backup level (0 = full, 1..n = incremental)
|
void |
setDatabase(java.lang.String database)
Sets the database path for the connection to the service manager.
|
void |
setNoDBTriggers(boolean noDBTriggers)
Sets the backup option no database triggers when connecting
at backup.
|
attachDatabase, 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, waitgetAuthPlugins, getCharSet, getDatabase, getDbCryptConfig, getHost, getLogger, getPassword, getPort, getServerVersion, getUser, getWireCrypt, isWireCompression, setAuthPlugins, setCharSet, setDbCryptConfig, setHost, setLogger, setPassword, setPort, setUser, setWireCompression, setWireCryptpublic FBNBackupManager()
FBNBackupManager based on the default GDSType.public FBNBackupManager(java.lang.String gdsType)
FBNBackupManager based on a given GDSType.gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVEpublic FBNBackupManager(GDSType gdsType)
FBNBackupManager based on a given GDSType.gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVEpublic void setBackupFile(java.lang.String backupFile)
NBackupManagersetBackupFile in interface NBackupManagerbackupFile - the location of the backup file.public void addBackupFile(java.lang.String backupFile)
NBackupManageraddBackupFile in interface NBackupManagerbackupFile - the location of the backup file.public void clearBackupFiles()
NBackupManagerNBackupManager.addBackupFile(String) method.clearBackupFiles in interface NBackupManagerpublic void setDatabase(java.lang.String database)
ServiceManagersetDatabase in interface NBackupManagersetDatabase in interface ServiceManagersetDatabase in class FBServiceManagerdatabase - path for the connection to the service manager.public void backupDatabase()
throws java.sql.SQLException
NBackupManagerbackupDatabase in interface NBackupManagerjava.sql.SQLException - if a database error occurs during the backuppublic void restoreDatabase()
throws java.sql.SQLException
NBackupManagerrestoreDatabase in interface NBackupManagerjava.sql.SQLException - if a database error occurs during the restoreNBackupManager.restoreDatabase()public void setBackupLevel(int backupLevel)
NBackupManagersetBackupLevel in interface NBackupManagerbackupLevel - backup level (e.g. 0 = full backup, 1 = level 1 incremental backup based on level 0 backuppublic void setNoDBTriggers(boolean noDBTriggers)
NBackupManagersetNoDBTriggers in interface NBackupManagerCopyright © 2001-2020 Jaybird (Firebird JDBC/JCA) team. All rights reserved.