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, setUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDatabase, getHost, getLogger, getPassword, getPort, getUser, setHost, setLogger, setPassword, setPort, setUser
public 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)
NBackupManager
setBackupFile
in interface NBackupManager
backupFile
- the location of the backup file.NBackupManager.setBackupFile(java.lang.String)
public void addBackupFile(java.lang.String backupFile)
NBackupManager
addBackupFile
in interface NBackupManager
backupFile
- the location of the backup file.NBackupManager.addBackupFile(java.lang.String)
public void clearBackupFiles()
NBackupManager
NBackupManager.addBackupFile(String)
method.clearBackupFiles
in interface NBackupManager
NBackupManager.clearBackupFiles()
public void setDatabase(java.lang.String database)
ServiceManager
setDatabase
in interface NBackupManager
setDatabase
in interface ServiceManager
setDatabase
in class FBServiceManager
database
- path for the connection to the service manager.ServiceManager.setDatabase(java.lang.String)
public void backupDatabase() throws java.sql.SQLException
NBackupManager
backupDatabase
in interface NBackupManager
java.sql.SQLException
- if a database error occurs during the backupNBackupManager.backupDatabase()
public void restoreDatabase() throws java.sql.SQLException
NBackupManager
restoreDatabase
in interface NBackupManager
java.sql.SQLException
- if a database error occurs during the restoreNBackupManager.restoreDatabase()
public void setBackupLevel(int backupLevel)
NBackupManager
setBackupLevel
in interface NBackupManager
backupLevel
- backup level (e.g. 0 = full backup, 1 = level 1 incremental
backup based on level 0 backupNBackupManager.setBackupLevel(int)
public void setNoDBTriggers(boolean noDBTriggers)
NBackupManager
setNoDBTriggers
in interface NBackupManager
NBackupManager.setNoDBTriggers(boolean)
Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.