public interface IHeapElementManager
| Modifier and Type | Method and Description |
|---|---|
void |
appendHeapFileRecord(IFileStorable heapRecord)
append an heap file record that will be to write in file
|
String |
backup(long identifier,
int maxBackup) |
void |
clear()
clear heap content
service must be started and transaction opened |
void |
clearReadCache() |
void |
closeTransaction()
close the heap file transaction management committing the modifications
to the file before
|
void |
closeTransactionDiscardChange()
close the heap file transaction management without commit modification in
file
|
void |
delete(long positionInFile) |
IDataRecordKeyManager |
getDataRecordKeyManager() |
IFileForStorable |
getFileForStorable() |
long |
getFileSize() |
IFileStorable |
getHeapHeader() |
IHeapRecordFactory |
getHeapRecordFactory() |
int |
getNumberOfHeaprecordInMemory() |
boolean |
isCrashSafeMode() |
boolean |
isDataLost()
the returned value is set by
wasBadFileStableState() |
boolean |
isServiceStarted() |
boolean |
isTransactionOpened() |
void |
openTransaction()
open the heap file transaction management
|
IFileStorable |
readHeapFileDataRecord(long positionInFile)
read heap record in file
|
void |
removeFiles()
removes files containing heap data
transaction must be closed and service stopped |
void |
setDataRecordKeyManager(IDataRecordKeyManager dataRecordKeyManager) |
void |
setHeapHeader(IFileStorable heapHeader)
set heap header
|
void |
setHeapRecordFactory(IHeapRecordFactory heapRecordFactory) |
void |
startService()
start heap record management service
|
void |
stopService()
stop heap record management service
|
boolean |
wasBadFileStableState()
check file stable state, restore if possible
service must not be started must be called before heap file access |
void setHeapHeader(IFileStorable heapHeader) throws HeapException
heapHeader - HeapExceptionboolean isCrashSafeMode()
IFileForStorable getFileForStorable()
boolean wasBadFileStableState()
throws HeapException
HeapException - no file in stable state, no files in stable stateboolean isDataLost()
wasBadFileStableState()wasBadFileStableState()void removeFiles()
throws HeapException
HeapExceptionvoid startService()
throws HeapException
HeapException - file access error
file data corruptedvoid stopService()
throws HeapException
HeapExceptionboolean isServiceStarted()
void openTransaction()
throws HeapException
HeapExceptionvoid closeTransaction()
throws HeapException
HeapExceptionvoid closeTransactionDiscardChange()
throws HeapException
HeapExceptionboolean isTransactionOpened()
void clear()
throws HeapException
HeapExceptionIFileStorable getHeapHeader() throws HeapException
HeapExceptionIFileStorable readHeapFileDataRecord(long positionInFile) throws HeapException
positionInFile - heap record position in fileHeapExceptionvoid appendHeapFileRecord(IFileStorable heapRecord) throws HeapException
heapRecord - the heap file record to appendHeapExceptionvoid delete(long positionInFile)
throws HeapException
positionInFile - HeapExceptionlong getFileSize()
throws HeapException
HeapExceptionint getNumberOfHeaprecordInMemory()
void setHeapRecordFactory(IHeapRecordFactory heapRecordFactory)
IHeapRecordFactory getHeapRecordFactory()
void setDataRecordKeyManager(IDataRecordKeyManager dataRecordKeyManager)
IDataRecordKeyManager getDataRecordKeyManager()
String backup(long identifier, int maxBackup) throws HeapException
HeapExceptionvoid clearReadCache()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.