org.firebirdsql.management
Class FBBackupManager
- BackupManager, ServiceManager
public class FBBackupManager
Implements the backup and restore functionality of Firebird Services API.
BACKUP_CONVERT , BACKUP_EXPAND , BACKUP_IGNORE_CHECKSUMS , BACKUP_IGNORE_LIMBO , BACKUP_METADATA_ONLY , BACKUP_NON_TRANSPORTABLE , BACKUP_NO_GARBAGE_COLLECT , BACKUP_OLD_DESCRIPTIONS , RESTORE_DEACTIVATE_INDEX , RESTORE_NO_SHADOW , RESTORE_NO_VALIDITY , RESTORE_ONE_AT_A_TIME , RESTORE_USE_ALL_SPACE |
FBBackupManager() - Create a new instance of
FBBackupManager based on
the default GDSType.
|
FBBackupManager(String gdsType) - Create a new instance of
FBBackupManager based on
a given GDSType.
|
FBBackupManager(org.firebirdsql.gds.impl.GDSType gdsType) - Create a new instance of
FBBackupManager based on
a given GDSType.
|
attachServiceManager , createRequestBuffer , detachServiceManager , executeServicesOperation , getDatabase , getGds , getHost , getLogger , getPassword , getPort , getServiceName , getUser , queueService , setDatabase , setHost , setLogger , setPassword , setPort , setUser |
FBBackupManager
public FBBackupManager()
Create a new instance of FBBackupManager
based on
the default GDSType.
FBBackupManager
public FBBackupManager(String gdsType)
Create a new instance of FBBackupManager
based on
a given GDSType.
gdsType
- type must be PURE_JAVA, EMBEDDED, or NATIVE
FBBackupManager
public FBBackupManager(org.firebirdsql.gds.impl.GDSType gdsType)
Create a new instance of FBBackupManager
based on
a given GDSType.
gdsType
- type must be PURE_JAVA, EMBEDDED, or NATIVE
setBackupPath
public void setBackupPath(String backupPath)
- setBackupPath in interface BackupManager
org.firebirdsql.management.BackupManager.setBackupPath(java.lang.String)
setRestorePageBufferCount
public void setRestorePageBufferCount(int bufferCount)
Set the default number of pages to be buffered (cached) by default in a
restored database.
- setRestorePageBufferCount in interface BackupManager
bufferCount
- The page-buffer size to be used, a positive value
setRestorePageSize
public void setRestorePageSize(int pageSize)
Set the page size that will be used for a restored database. The value
for pageSize
must be one of: 1024, 2048, 4096, or 8192. The
default value is 1024.
- setRestorePageSize in interface BackupManager
pageSize
- The page size to be used in a restored database,
one of 1024, 2048, 4196 or 8192
setRestoreReadOnly
public void setRestoreReadOnly(boolean readOnly)
Set the read-only attribute on a restored database.
- setRestoreReadOnly in interface BackupManager
readOnly
- If true
, a restored database will be
read-only, otherwise it will be read-write.
setRestoreReplace
public void setRestoreReplace(boolean replace)
Set the restore operation to create a new database, as opposed to
overwriting an existing database. This is true by default.
- setRestoreReplace in interface BackupManager
replace
- If true
, the restore operation will attempt
to create a new database, otherwise the restore operation will
overwrite an existing database
setVerbose
public void setVerbose(boolean verbose)
Set whether the operations of this BackupManager
will
result in verbose logging to the configured logger.
- setVerbose in interface BackupManager
verbose
- If true
, operations will be logged
verbosely, otherwise they will not be logged verbosely
Copyright B) 2001 David Jencks and other authors. All rights reserved.