|
Berkeley DB version 5.3.21 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sleepycat.db.BackupOptions
public class BackupOptions
Options for Environment.backup(java.lang.String, com.sleepycat.db.BackupOptions)
operations.
Field Summary | |
---|---|
static BackupOptions |
DEFAULT
Default configuration used if null is passed to methods that create a cursor. |
Constructor Summary | |
---|---|
BackupOptions()
Construct a default options object for backup operations. |
Method Summary | |
---|---|
boolean |
getAllowCreate()
Whether the target directory will be created if it does not already exist. |
boolean |
getClean()
Whether the target backup directory should be cleaned. |
boolean |
getExclusiveCreate()
Whether the target directory will be exclusively created. |
boolean |
getFiles()
Whether ordinary files are included in the hot backup. |
boolean |
getNoLogs()
Whether log files are included in the backup. |
boolean |
getSingleDir()
Whether all backed up files are to be placed in a single directory. |
boolean |
getUpdate()
Whether an incremental backup will be performed. |
void |
setAllowCreate(boolean allowcreate)
Sets whether the target directory will be created if it does not already exist. |
void |
setClean(boolean clean)
Sets whether to clean the target backup directory. |
void |
setExclusiveCreate(boolean exclusivecreate)
Sets whether the target directory will be exclusively created. |
void |
setFiles(boolean files)
Sets whether all ordinary files will be backed up. |
void |
setNoLogs(boolean nologs)
Sets whether log files are skipped in the backup. |
void |
setSingleDir(boolean singledir)
Sets whether all backed up files are to be placed in a single directory. |
void |
setUpdate(boolean update)
Sets whether to perform an incremental back up. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final BackupOptions DEFAULT
Constructor Detail |
---|
public BackupOptions()
Method Detail |
---|
public void setClean(boolean clean)
clean
- If true, all files are removed from the target backup directory before
the back up is performed.public boolean getClean()
public void setFiles(boolean files)
files
- If true, all ordinary files that might exist in the environment, as well
as might exist in the environment's subdirectories, are backed up; otherwise,
only files necessary for the proper operation of Berkeley DB are backed up.public boolean getFiles()
public void setNoLogs(boolean nologs)
nologs
- If true, log files are not included in the backup. Instead, only *.db
files are copied to the target directory.public boolean getNoLogs()
public void setSingleDir(boolean singledir)
singledir
- If true, then regardless of the directory structure used by the source
environment, place all back up files in the single target directory
Use this option if absolute path names to your environment directory
and the files within that directory are required by your application.public boolean getSingleDir()
public void setUpdate(boolean update)
update
- If true, perform an incremental back up, instead of a full back up.
When this option is specified, only log files are copied to the target
directory.public boolean getUpdate()
public void setAllowCreate(boolean allowcreate)
allowcreate
- If true, then create the target directory and any subdirectories as
required to perform the backup; otherwise, any missing directories
will result in the backup operation throwing a
DatabaseException
exception.public boolean getAllowCreate()
DatabaseException
exception.public void setExclusiveCreate(boolean exclusivecreate)
exclusivecreate
- If true, then the backup operation will create the target directory and
any required subdirectories. If the target directory currently exists,
the backup operation will throw a
DatabaseException
exception.public boolean getExclusiveCreate()
DatabaseException
exception.
|
Berkeley DB version 5.3.21 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |