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(org.firebirdsql.gds.impl.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.
|
attachServiceManager, createRequestBuffer, detachServiceManager, executeServicesOperation, getDatabase, getGds, getHost, getLogger, getPassword, getPort, getServiceName, getUser, queueService, setHost, setLogger, setPassword, setPort, setUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDatabase, getHost, getLogger, getPassword, getPort, getUser, setHost, setLogger, setPassword, setPort, setUserpublic 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(org.firebirdsql.gds.impl.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.NBackupManager.setBackupFile(java.lang.String)public void addBackupFile(java.lang.String backupFile)
NBackupManageraddBackupFile in interface NBackupManagerbackupFile - the location of the backup file.NBackupManager.addBackupFile(java.lang.String)public void clearBackupFiles()
NBackupManagerNBackupManager.addBackupFile(String) method.clearBackupFiles in interface NBackupManagerNBackupManager.clearBackupFiles()public void setDatabase(java.lang.String database)
ServiceManagersetDatabase in interface NBackupManagersetDatabase in interface ServiceManagersetDatabase in class FBServiceManagerdatabase - path for the connection to the service manager.ServiceManager.setDatabase(java.lang.String)public void backupDatabase()
throws java.sql.SQLException
NBackupManagerbackupDatabase in interface NBackupManagerjava.sql.SQLException - if a database error occurs during the backupNBackupManager.backupDatabase()public 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 backupNBackupManager.setBackupLevel(int)public void setNoDBTriggers(boolean noDBTriggers)
NBackupManagersetNoDBTriggers in interface NBackupManagerNBackupManager.setNoDBTriggers(boolean)Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.