| |
|
| java.lang.Object com.db4o.defragment.DefragmentConfig
DefragmentConfig | public class DefragmentConfig (Code) | | Configuration for a defragmentation run.
See Also: Defragment |
Constructor Summary | |
public | DefragmentConfig(String origPath) Creates a configuration for a defragmentation run. | public | DefragmentConfig(String origPath, String backupPath) Creates a configuration for a defragmentation run with in-memory mapping.
All properties other than the provided paths are set to FALSE by default.
Parameters: origPath - The path to the file to be defragmented. | public | DefragmentConfig(String origPath, String backupPath, ContextIDMapping mapping) Creates a configuration for a defragmentation run. |
DEBUG | final public static boolean DEBUG(Code) | | |
DefragmentConfig | public DefragmentConfig(String origPath)(Code) | | Creates a configuration for a defragmentation run. The backup and mapping
file paths are generated from the original path by appending the default
suffixes. All properties other than the provided paths are set to FALSE
by default.
Parameters: origPath - The path to the file to be defragmented. Must exist and must bea valid yap file. |
DefragmentConfig | public DefragmentConfig(String origPath, String backupPath)(Code) | | Creates a configuration for a defragmentation run with in-memory mapping.
All properties other than the provided paths are set to FALSE by default.
Parameters: origPath - The path to the file to be defragmented. Must exist and must bea valid yap file. Parameters: backupPath - The path to the backup of the original file. No file shouldexist at this position, otherwise it will be OVERWRITTEN if forceBackupDelete()is set to true! |
DefragmentConfig | public DefragmentConfig(String origPath, String backupPath, ContextIDMapping mapping)(Code) | | Creates a configuration for a defragmentation run. All properties other
than the provided paths are set to FALSE by default.
Parameters: origPath - The path to the file to be defragmented. Must exist and must bea valid yap file. Parameters: backupPath - The path to the backup of the original file. No file shouldexist at this position, otherwise it will be OVERWRITTEN if forceBackupDelete()is set to true! Parameters: mapping - The intermediate mapping used internally. |
backupPath | public String backupPath()(Code) | | The path to the backup of the original file. |
blockSize | public int blockSize()(Code) | | |
fileNeedsUpgrade | public boolean fileNeedsUpgrade()(Code) | | |
forceBackupDelete | public boolean forceBackupDelete()(Code) | | true, if an existing backup file should be deleted, false otherwise. |
forceBackupDelete | public void forceBackupDelete(boolean forceBackupDelete)(Code) | | Parameters: forceBackupDelete - true, if an existing backup file should be deleted, false otherwise. |
mapping | public ContextIDMapping mapping()(Code) | | The intermediate mapping used internally. For internal use only. |
objectCommitFrequency | public int objectCommitFrequency()(Code) | | |
objectCommitFrequency | public void objectCommitFrequency(int objectCommitFrequency)(Code) | | Parameters: objectCommitFrequency - The number of processed object (slots) that should trigger anintermediate commit of the target file. Default: 0, meaning: never. |
origPath | public String origPath()(Code) | | The path to the file to be defragmented. |
storedClassFilter | public void storedClassFilter(StoredClassFilter storedClassFilter)(Code) | | Parameters: storedClassFilter - The StoredClassFilter used to select stored class extents tobe included into the defragmented file. |
upgradeFile | public void upgradeFile(String tempPath)(Code) | | Instruct the defragment process to upgrade the source file to the current db4o
version prior to defragmenting it. Use this option if your source file has been created
with an older db4o version than the one you are using.
Parameters: tempPath - The location for an intermediate, upgraded version of the source file. |
|
|
|