|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.defragment.DefragmentConfig
public class DefragmentConfig
Configuration for a defragmentation run.
Defragment
Field Summary | |
---|---|
static java.lang.String |
BACKUP_SUFFIX
|
static boolean |
DEBUG
|
Constructor Summary | |
---|---|
DefragmentConfig(java.lang.String origPath)
Creates a configuration for a defragmentation run. |
|
DefragmentConfig(java.lang.String origPath,
java.lang.String backupPath)
Creates a configuration for a defragmentation run with in-memory mapping. |
|
DefragmentConfig(java.lang.String origPath,
java.lang.String backupPath,
ContextIDMapping mapping)
Creates a configuration for a defragmentation run. |
Method Summary | |
---|---|
java.lang.String |
backupPath()
|
int |
blockSize()
|
Configuration |
db4oConfig()
|
void |
db4oConfig(Configuration config)
|
boolean |
fileNeedsUpgrade()
|
boolean |
forceBackupDelete()
|
void |
forceBackupDelete(boolean forceBackupDelete)
|
ContextIDMapping |
mapping()
|
int |
objectCommitFrequency()
|
void |
objectCommitFrequency(int objectCommitFrequency)
|
java.lang.String |
origPath()
|
StoredClassFilter |
storedClassFilter()
|
void |
storedClassFilter(StoredClassFilter storedClassFilter)
|
java.lang.String |
tempPath()
|
void |
upgradeFile(java.lang.String tempPath)
Instruct the defragment process to upgrade the source file to the current db4o version prior to defragmenting it. |
static Configuration |
vanillaDb4oConfig(int blockSize)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DEBUG
public static final java.lang.String BACKUP_SUFFIX
Constructor Detail |
---|
public DefragmentConfig(java.lang.String origPath)
origPath
- The path to the file to be defragmented. Must exist and must be
a valid yap file.public DefragmentConfig(java.lang.String origPath, java.lang.String backupPath)
origPath
- The path to the file to be defragmented. Must exist and must be
a valid yap file.backupPath
- The path to the backup of the original file. No file should
exist at this position, otherwise it will be OVERWRITTEN if forceBackupDelete()
is set to true!public DefragmentConfig(java.lang.String origPath, java.lang.String backupPath, ContextIDMapping mapping)
origPath
- The path to the file to be defragmented. Must exist and must be
a valid yap file.backupPath
- The path to the backup of the original file. No file should
exist at this position, otherwise it will be OVERWRITTEN if forceBackupDelete()
is set to true!mapping
- The intermediate mapping used internally.Method Detail |
---|
public java.lang.String origPath()
public java.lang.String backupPath()
public ContextIDMapping mapping()
public StoredClassFilter storedClassFilter()
StoredClassFilter
used to select stored class extents to
be included into the defragmented file.public void storedClassFilter(StoredClassFilter storedClassFilter)
storedClassFilter
- The StoredClassFilter
used to select stored class extents to
be included into the defragmented file.public boolean forceBackupDelete()
public void forceBackupDelete(boolean forceBackupDelete)
forceBackupDelete
- true, if an existing backup file should be deleted, false otherwise.public Configuration db4oConfig()
Configuration
to be applied
during the defragment process.public void db4oConfig(Configuration config)
config
- The db4o Configuration
to be applied
during the defragment process.public int objectCommitFrequency()
public void objectCommitFrequency(int objectCommitFrequency)
objectCommitFrequency
- The number of processed object (slots) that should trigger an
intermediate commit of the target file. Default: 0, meaning: never.public void upgradeFile(java.lang.String tempPath)
tempPath
- The location for an intermediate, upgraded version of the source file.public boolean fileNeedsUpgrade()
public java.lang.String tempPath()
public int blockSize()
public static Configuration vanillaDb4oConfig(int blockSize)
|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |