|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.firebirdsql.management.FBServiceManager
org.firebirdsql.management.FBNBackupManager
public class FBNBackupManager
Implements the incremental backup and restore functionality of NBackup via the Firebird Services API.
| Field Summary |
|---|
| Fields inherited from class org.firebirdsql.management.FBServiceManager |
|---|
BUFFER_SIZE |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.firebirdsql.management.FBServiceManager |
|---|
attachServiceManager, createRequestBuffer, detachServiceManager, executeServicesOperation, getDatabase, getGds, getHost, getLogger, getPassword, getPort, getServiceName, getUser, queueService, setHost, setLogger, setPassword, setPort, setUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.firebirdsql.management.ServiceManager |
|---|
getDatabase, getHost, getLogger, getPassword, getPort, getUser, setHost, setLogger, setPassword, setPort, setUser |
| Constructor Detail |
|---|
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 NATIVE| Method Detail |
|---|
public void setBackupFile(java.lang.String backupFile)
NBackupManager
setBackupFile in interface NBackupManagerbackupFile - the location of the backup file.NBackupManager.setBackupFile(java.lang.String)public void addBackupFile(java.lang.String backupFile)
NBackupManager
addBackupFile 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)
ServiceManager
setDatabase 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
NBackupManager
backupDatabase in interface NBackupManagerjava.sql.SQLException - if a database error occurs during the backupNBackupManager.backupDatabase()
public void restoreDatabase()
throws java.sql.SQLException
NBackupManager
restoreDatabase in interface NBackupManagerjava.sql.SQLException - if a database error occurs during the restoreNBackupManager.restoreDatabase()public void setBackupLevel(int backupLevel)
NBackupManager
setBackupLevel 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)
NBackupManager
setNoDBTriggers in interface NBackupManagerNBackupManager.setNoDBTriggers(boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||