@NotStorableClass public class HeapFileSetup extends Object
Constructor and Description |
---|
HeapFileSetup(EnumFileAccessMode fileAccessMode,
File dataFile,
boolean crashSafeMode,
boolean useCacheMode,
boolean deleteRenaming,
boolean clearResizeFile,
int maxFileOperationRetry,
int fileOperationRetryMsDelay,
File openFileTraceFile) |
Modifier and Type | Method and Description |
---|---|
void |
cacheSetup(int pageSize,
int maxPage)
setup of cache parameters
|
void |
crashSafeSetup(File backupDataFile,
File stateOkFlagFile,
File stateBackupOkFlagFile,
File globalStateFlagFile)
setup of crash safe mode parameters
|
void |
fileBufferSetup(int maxBufferSize,
int maxNumberOfBuffer) |
File |
getBackupDataFile() |
FileAccessParameter |
getBackupFileAccessParameter() |
File |
getDataFile() |
FileAccessParameter |
getDataFileAccessParameter() |
EnumFileAccessMode |
getFileAccessMode() |
int |
getFileOperationRetryMsDelay() |
File |
getGlobalStateFlagFile() |
int |
getMaxFileOperationRetry() |
int |
getMaxPage() |
File |
getOpenFileTraceFile() |
int |
getPageSize() |
File |
getStateBackupOkFlagFile() |
File |
getStateOkFlagFile() |
boolean |
isClearResizeFile() |
boolean |
isCrashSafeMode() |
boolean |
isDeleteRenaming() |
boolean |
isUseCacheMode() |
public HeapFileSetup(EnumFileAccessMode fileAccessMode, File dataFile, boolean crashSafeMode, boolean useCacheMode, boolean deleteRenaming, boolean clearResizeFile, int maxFileOperationRetry, int fileOperationRetryMsDelay, File openFileTraceFile) throws HeapException
fileAccessMode
- dataFile
- the file for the heapcrashSafeMode
- true if crash safe mode enableduseCacheMode
- true if use cachedeleteRenaming
- clearResizeFile
- maxFileOperationRetry
- fileOperationRetryMsDelay
- HeapException
public void cacheSetup(int pageSize, int maxPage) throws HeapException
pageSize
- page size ( number of byte ), must be greater or equals to
1024, set only if use cache enabledmaxPage
- maximum number of page for read cache, set only if use cache
enabledHeapException
- use cache mode not enabledpublic void crashSafeSetup(File backupDataFile, File stateOkFlagFile, File stateBackupOkFlagFile, File globalStateFlagFile) throws HeapException
backupDataFile
- the backup file for the heapstateOkFlagFile
- file used has flag for data file on stable statestateBackupOkFlagFile
- file used has flag for backup data file on stable stateglobalStateFlagFile
- file indicating backup and data file stable stateHeapException
- crash safe mode not enablepublic void fileBufferSetup(int maxBufferSize, int maxNumberOfBuffer) throws HeapException
HeapException
public File getBackupDataFile() throws HeapException
HeapException
public boolean isCrashSafeMode()
public File getDataFile()
public File getGlobalStateFlagFile() throws HeapException
HeapException
public int getMaxPage() throws HeapException
HeapException
public int getPageSize() throws HeapException
HeapException
public File getStateBackupOkFlagFile() throws HeapException
HeapException
public File getStateOkFlagFile() throws HeapException
HeapException
public boolean isUseCacheMode()
public boolean isDeleteRenaming()
public boolean isClearResizeFile()
public int getMaxFileOperationRetry()
public int getFileOperationRetryMsDelay()
public File getOpenFileTraceFile()
public EnumFileAccessMode getFileAccessMode()
public FileAccessParameter getDataFileAccessParameter() throws HeapException
HeapException
public FileAccessParameter getBackupFileAccessParameter() throws HeapException
HeapException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.