@NotStorableClass public class HeapFileDataManager extends AbstractHeapDataManager implements IHeapRecordFactory
| Modifier and Type | Field and Description |
|---|---|
protected IHeapElementManager |
heapElementManager
the heap element manager, data record are accessible by position in file
|
CLEAR_STANDBY_MODIFICATION_FAILED, FAILED_READ_DATA_RECORD, FLUSH_FAILED, logger| Constructor and Description |
|---|
HeapFileDataManager(HeapFileSetup setup,
boolean manageNodeIndex) |
ceilingDataRecordIdentifier, clear, clearStandbyModification, dataRecordIterator, deleteDataRecord, firstDataRecordIdentifier, floorDataRecordIdentifier, flush, freeSize, getDataRecordIdentifierSet, getNewDataRecordIdentifier, getNextFreeDataRecordIdentifier, getNumberOfDataRecord, getNumberOfFreeRecord, hasDataRecord, heapSize, higherDataRecordIdentifier, isServiceStarted, lastDataRecordIdentifier, lowerDataRecordIdentifier, nextDataRecordIdentifierImpl, readDataRecord, removeFirstDataRecord, setNextFreeDataRecordIdentifier, startService, stopService, stopService, usedSize, writeDataRecordprotected final IHeapElementManager heapElementManager
public HeapFileDataManager(HeapFileSetup setup, boolean manageNodeIndex) throws HeapException
HeapExceptionprotected final void startServiceImpl(boolean removeFiles)
throws HeapException
AbstractHeapDataManagerstartServiceImpl in class AbstractHeapDataManagerHeapExceptionprotected void clearImpl()
throws HeapException
clearImpl in class AbstractHeapDataManagerHeapExceptionprotected void removeFiles()
throws HeapException
AbstractHeapDataManagerremoveFiles in class AbstractHeapDataManagerHeapExceptionprotected void stopServiceImpl(boolean removeFiles)
throws HeapException
AbstractHeapDataManagerstopServiceImpl in class AbstractHeapDataManagerHeapExceptionpublic boolean writeDataRecordImpl(DataRecordIdentifier dataRecordIdentifier, byte[] data) throws HeapException
writeDataRecordImpl in class AbstractHeapDataManagerHeapExceptionpublic boolean deleteDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
deleteDataRecordImpl in class AbstractHeapDataManagerHeapExceptionprotected void flushImp()
throws HeapException
AbstractHeapDataManager#updateHeapRecordImpl(DataRecordIdentifier, IHeapDataRecord)flushImp in class AbstractHeapDataManagerHeapExceptionprotected void clearStandbyModificationImpl()
throws HeapException
clearStandbyModificationImpl in class AbstractHeapDataManagerHeapExceptionprotected DataRecordIdentifier getNextFreeDataRecordIdentifierImpl() throws HeapException
getNextFreeDataRecordIdentifierImpl in class AbstractHeapDataManagerHeapExceptionprotected void setNextFreeDataRecordIdentifierImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
setNextFreeDataRecordIdentifierImpl in class AbstractHeapDataManagerHeapExceptionprotected DataRecordIdentifier getNewDataRecordIdentifierImpl() throws HeapException
AbstractHeapDataManagergetNewDataRecordIdentifierImpl in class AbstractHeapDataManagerHeapExceptionprotected DataRecordIdentifier removeFirstDataRecordImpl() throws HeapException
removeFirstDataRecordImpl in class AbstractHeapDataManagerHeapExceptionpublic byte[] readDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
readDataRecordImpl in class AbstractHeapDataManagerHeapExceptionpublic IFileStorable createHeapRecord(IHeapElementManager heapElementManager, long positionInFile) throws HeapException
IHeapRecordFactorycreateHeapRecord in interface IHeapRecordFactoryHeapExceptionprotected boolean hasDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
hasDataRecordImpl in class AbstractHeapDataManagerHeapExceptionprotected DataRecordIdentifier firstDataRecordIdentifierImpl() throws HeapException
firstDataRecordIdentifierImpl in class AbstractHeapDataManagerHeapExceptionpublic DataRecordIdentifier nextDataRecordIdentifier(DataRecordIdentifier dataRecordIdentifier) throws HeapException
nextDataRecordIdentifier in interface IHeapDataManagernextDataRecordIdentifier in class AbstractHeapDataManagerdataRecordIdentifier - wich for next is requestedHeapExceptionprotected DataRecordIdentifier lastDataRecordIdentifierImpl() throws HeapException
lastDataRecordIdentifierImpl in class AbstractHeapDataManagerHeapExceptionprotected DataRecordIdentifier lowerDataRecordIdentifierImpl(DataRecordIdentifier identifier) throws HeapException
lowerDataRecordIdentifierImpl in class AbstractHeapDataManagerHeapExceptionprotected DataRecordIdentifier floorDataRecordIdentifierImpl(DataRecordIdentifier identifier) throws HeapException
floorDataRecordIdentifierImpl in class AbstractHeapDataManagerHeapExceptionprotected DataRecordIdentifier ceilingDataRecordIdentifierImpl(DataRecordIdentifier identifier) throws HeapException
ceilingDataRecordIdentifierImpl in class AbstractHeapDataManagerHeapExceptionprotected DataRecordIdentifier higherDataRecordIdentifierImpl(DataRecordIdentifier identifier) throws HeapException
higherDataRecordIdentifierImpl in class AbstractHeapDataManagerHeapExceptionprotected void closeHeapManagerAfterException()
AbstractHeapDataManagercloseHeapManagerAfterException in class AbstractHeapDataManagerpublic boolean isDataLost()
IHeapDataManagerisDataLost in interface IHeapDataManager@Fortest protected Set<DataRecordIdentifier> getDataRecordIdentifierSetImpl() throws HeapException
getDataRecordIdentifierSetImpl in class AbstractHeapDataManagerHeapExceptionprotected int getNumberOfDataRecordImpl()
throws HeapException
getNumberOfDataRecordImpl in class AbstractHeapDataManagerHeapExceptionprotected int getNumberOfFreeRecordImpl()
throws HeapException
getNumberOfFreeRecordImpl in class AbstractHeapDataManagerHeapExceptionprotected long heapSizeImpl()
throws HeapException
heapSizeImpl in class AbstractHeapDataManagerHeapExceptionprotected long freeSizeImpl()
throws HeapException
freeSizeImpl in class AbstractHeapDataManagerHeapExceptionprotected long usedSizeImpl()
throws HeapException
usedSizeImpl in class AbstractHeapDataManagerHeapExceptionpublic String backup(long identifier, int maxBackup) throws HeapException
backup in interface IHeapDataManagerHeapExceptionpublic String getStorageFileName() throws HeapException
getStorageFileName in interface IHeapDataManagerHeapExceptionprotected Iterator<DataRecordIdentifier> dataRecordIteratorImpl()
dataRecordIteratorImpl in class AbstractHeapDataManagerpublic void setDataRecordKeyManager(IDataRecordKeyManager dataRecordKeyComparator)
setDataRecordKeyManager in interface IHeapDataManager@Fortest public long getLastRecordPositionInFile() throws HeapException
IHeapDataManagergetLastRecordPositionInFile in interface IHeapDataManagerHeapException@Fortest public long getRecordPositionInfile(DataRecordIdentifier identifier) throws HeapException
IHeapDataManagergetRecordPositionInfile in interface IHeapDataManagerHeapException@Fortest public void accept(IRBTVisitor<DataRecordIdentifier> visitor) throws HeapException
visitor - HeapException@Fortest public IHeapElementManager getHeapElementManager()
@Fortest public RedBlackTree<Integer> getFreeNodeTree()
@Fortest public RedBlackTree<DataRecordIdentifier> getIdNodeTree()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.