@NotStorableClass public class BtreePlusDataManager extends AbstractHeapDataManager
CLEAR_STANDBY_MODIFICATION_FAILED, FAILED_READ_DATA_RECORD, FLUSH_FAILED, logger| Constructor and Description |
|---|
BtreePlusDataManager(HeapFileSetup setup) |
| Modifier and Type | Method and Description |
|---|---|
String |
backup(long identifier,
int maxBackup) |
protected void |
clearImpl() |
protected void |
clearStandbyModificationImpl() |
protected void |
closeHeapManagerAfterException()
close heap element manager after exception
|
protected Iterator<DataRecordIdentifier> |
dataRecordIteratorImpl() |
protected boolean |
deleteDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) |
protected void |
flushImp()
implement all flush action after call to
#updateHeapRecordImpl(DataRecordIdentifier, IHeapDataRecord) |
protected long |
freeSizeImpl() |
BtreePlusElementMgr |
getBtreePlusElementMgr() |
protected Set<DataRecordIdentifier> |
getDataRecordIdentifierSetImpl() |
long |
getLastRecordPositionInFile()
for test purpose
|
protected DataRecordIdentifier |
getNewDataRecordIdentifierImpl()
to get a new data identifier for future data record creation
|
protected DataRecordIdentifier |
getNextFreeDataRecordIdentifierImpl() |
protected int |
getNumberOfDataRecordImpl() |
protected int |
getNumberOfFreeRecordImpl() |
long |
getRecordPositionInfile(DataRecordIdentifier identifier)
for test purpose
|
String |
getStorageFileName() |
protected boolean |
hasDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) |
protected long |
heapSizeImpl() |
boolean |
isDataLost()
return true if data lost after file stable state reconstruction.
|
protected byte[] |
readDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) |
protected void |
removeFiles()
remove existing files
|
protected DataRecordIdentifier |
removeFirstDataRecordImpl() |
void |
setDataRecordKeyManager(IDataRecordKeyManager dataRecordKeyManager) |
protected void |
setNextFreeDataRecordIdentifierImpl(DataRecordIdentifier dataRecordIdentifier) |
protected void |
startServiceImpl(boolean removeFiles)
to implement open actions
|
protected void |
stopServiceImpl(boolean removeFiles)
to implement close actions
|
protected long |
usedSizeImpl() |
protected boolean |
writeDataRecordImpl(DataRecordIdentifier dataRecordIdentifier,
byte[] data) |
ceilingDataRecordIdentifier, ceilingDataRecordIdentifierImpl, clear, clearStandbyModification, dataRecordIterator, deleteDataRecord, firstDataRecordIdentifier, firstDataRecordIdentifierImpl, floorDataRecordIdentifier, floorDataRecordIdentifierImpl, flush, freeSize, getDataRecordIdentifierSet, getNewDataRecordIdentifier, getNextFreeDataRecordIdentifier, getNumberOfDataRecord, getNumberOfFreeRecord, hasDataRecord, heapSize, higherDataRecordIdentifier, higherDataRecordIdentifierImpl, isServiceStarted, lastDataRecordIdentifier, lastDataRecordIdentifierImpl, lowerDataRecordIdentifier, lowerDataRecordIdentifierImpl, nextDataRecordIdentifier, nextDataRecordIdentifierImpl, readDataRecord, removeFirstDataRecord, setNextFreeDataRecordIdentifier, startService, stopService, stopService, usedSize, writeDataRecordpublic BtreePlusDataManager(HeapFileSetup setup) throws HeapException
HeapExceptionpublic BtreePlusElementMgr getBtreePlusElementMgr()
public boolean isDataLost()
IHeapDataManagerpublic String backup(long identifier, int maxBackup) throws HeapException
HeapExceptionpublic String getStorageFileName() throws HeapException
HeapExceptionpublic void setDataRecordKeyManager(IDataRecordKeyManager dataRecordKeyManager) throws HeapException
HeapExceptionprotected void removeFiles()
throws HeapException
AbstractHeapDataManagerremoveFiles in class AbstractHeapDataManagerHeapExceptionprotected void startServiceImpl(boolean removeFiles)
throws HeapException
AbstractHeapDataManagerstartServiceImpl in class AbstractHeapDataManagerHeapExceptionprotected void stopServiceImpl(boolean removeFiles)
throws HeapException
AbstractHeapDataManagerstopServiceImpl in class AbstractHeapDataManagerHeapExceptionprotected void clearImpl()
throws HeapException
clearImpl in class AbstractHeapDataManagerHeapExceptionprotected void flushImp()
throws HeapException
AbstractHeapDataManager#updateHeapRecordImpl(DataRecordIdentifier, IHeapDataRecord)flushImp in class AbstractHeapDataManagerHeapExceptionprotected void clearStandbyModificationImpl()
throws HeapException
clearStandbyModificationImpl in class AbstractHeapDataManagerHeapExceptionprotected void closeHeapManagerAfterException()
AbstractHeapDataManagercloseHeapManagerAfterException in class AbstractHeapDataManagerprotected 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 byte[] readDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
readDataRecordImpl in class AbstractHeapDataManagerHeapExceptionprotected boolean hasDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
hasDataRecordImpl in class AbstractHeapDataManagerHeapExceptionprotected boolean writeDataRecordImpl(DataRecordIdentifier dataRecordIdentifier, byte[] data) throws HeapException
writeDataRecordImpl in class AbstractHeapDataManagerHeapExceptionprotected boolean deleteDataRecordImpl(DataRecordIdentifier dataRecordIdentifier) throws HeapException
deleteDataRecordImpl in class AbstractHeapDataManagerHeapExceptionprotected DataRecordIdentifier removeFirstDataRecordImpl() throws HeapException
removeFirstDataRecordImpl 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 AbstractHeapDataManagerHeapException@Fortest protected Set<DataRecordIdentifier> getDataRecordIdentifierSetImpl() throws HeapException
getDataRecordIdentifierSetImpl in class AbstractHeapDataManagerHeapExceptionprotected Iterator<DataRecordIdentifier> dataRecordIteratorImpl() throws HeapException
dataRecordIteratorImpl in class AbstractHeapDataManagerHeapException@Fortest public long getRecordPositionInfile(DataRecordIdentifier identifier) throws HeapException
IHeapDataManagerHeapException@Fortest public long getLastRecordPositionInFile() throws HeapException
IHeapDataManagerHeapExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.