public static final class StorageFileManager.Default extends Object implements StorageFileManager, StorageFileUser
StorageFileManager.Default| Constructor and Description |
|---|
Default(int channelIndex,
StorageInitialDataFileNumberProvider initialDataFileNumberProvider,
StorageTimestampProvider timestampProvider,
StorageLiveFileProvider fileProvider,
StorageDataFileEvaluator dataFileEvaluator,
StorageEntityCache.Default entityCache,
StorageWriteController writeController,
StorageFileWriter writer,
one.microstream.util.BufferSizeProvider standardBufferSizeProvider,
StorageBackupHandler backupHandler) |
| Modifier and Type | Method and Description |
|---|---|
int |
channelIndex() |
void |
commitImport(long taskTimestamp) |
void |
commitWrite() |
void |
copyData(StorageImportSourceFile importFile) |
StorageRawFileStatistics.ChannelStatistics |
createRawFileStatistics() |
StorageLiveDataFile.Default |
currentStorageFile() |
void |
deleteBuffers()
The deleteBuffers method is used to allow an early deallocation
of the used DirectByteBuffers in order to reduce the off-heap
memory footprint without the need to relay on the GC.
|
protected StorageInventory |
determineEffectiveStorageInventory(StorageInventory storageInventory,
one.microstream.collections.EqHashTable<Long,StorageDataInventoryFile> supplementedMissingEmptyFiles) |
void |
dispose() |
void |
exportData(StorageLiveFileProvider fileProvider) |
boolean |
incrementalFileCleanupCheck(long nanoTimeBudgetBound) |
StorageIdAnalysis |
initializeStorage(long taskTimestamp,
long consistentStoreTimestamp,
StorageInventory storageInventory,
StorageChannel parent) |
boolean |
issuedFileCleanupCheck(long nanoTimeBudgetBound) |
void |
iterateStorageFiles(Consumer<? super StorageLiveDataFile> procedure) |
StorageInventory |
readStorage() |
void |
reset()
Closes all resources (files, locks, etc.).
|
void |
restartFileCleanupCursor() |
void |
rollbackWrite() |
long[] |
storeChunks(long timestamp,
ByteBuffer[] dataBuffers) |
protected void |
supplementedMissingEmptyFile(one.microstream.collections.EqHashTable<Long,StorageDataInventoryFile> supplementedMissingEmptyFiles,
long fileNumber) |
public Default(int channelIndex,
StorageInitialDataFileNumberProvider initialDataFileNumberProvider,
StorageTimestampProvider timestampProvider,
StorageLiveFileProvider fileProvider,
StorageDataFileEvaluator dataFileEvaluator,
StorageEntityCache.Default entityCache,
StorageWriteController writeController,
StorageFileWriter writer,
one.microstream.util.BufferSizeProvider standardBufferSizeProvider,
StorageBackupHandler backupHandler)
public final void dispose()
dispose in interface one.microstream.typing.Disposablepublic final int channelIndex()
channelIndex in interface StorageFileManagerchannelIndex in interface StorageHashChannelPartpublic final StorageLiveDataFile.Default currentStorageFile()
currentStorageFile in interface StorageFileManagerpublic void iterateStorageFiles(Consumer<? super StorageLiveDataFile> procedure)
iterateStorageFiles in interface StorageFileManagerpublic final long[] storeChunks(long timestamp,
ByteBuffer[] dataBuffers)
throws StorageExceptionIoWritingChunk
storeChunks in interface StorageFileManagerStorageExceptionIoWritingChunkpublic final void rollbackWrite()
rollbackWrite in interface StorageFileManagerpublic final void commitWrite()
commitWrite in interface StorageFileManagerpublic final StorageInventory readStorage()
readStorage in interface StorageFileManagerprotected void supplementedMissingEmptyFile(one.microstream.collections.EqHashTable<Long,StorageDataInventoryFile> supplementedMissingEmptyFiles, long fileNumber)
public StorageIdAnalysis initializeStorage(long taskTimestamp, long consistentStoreTimestamp, StorageInventory storageInventory, StorageChannel parent)
initializeStorage in interface StorageFileManagerprotected StorageInventory determineEffectiveStorageInventory(StorageInventory storageInventory, one.microstream.collections.EqHashTable<Long,StorageDataInventoryFile> supplementedMissingEmptyFiles)
public final void reset()
StorageChannelResetablePartreset in interface StorageChannelResetablePartreset in interface StorageFileManagerpublic final void deleteBuffers()
public void exportData(StorageLiveFileProvider fileProvider)
exportData in interface StorageFileManagerpublic final StorageRawFileStatistics.ChannelStatistics createRawFileStatistics()
createRawFileStatistics in interface StorageFileManagerpublic final boolean incrementalFileCleanupCheck(long nanoTimeBudgetBound)
incrementalFileCleanupCheck in interface StorageFileManagerpublic final void restartFileCleanupCursor()
restartFileCleanupCursor in interface StorageFileManagerpublic final boolean issuedFileCleanupCheck(long nanoTimeBudgetBound)
issuedFileCleanupCheck in interface StorageFileManagerpublic void copyData(StorageImportSourceFile importFile)
public void commitImport(long taskTimestamp)
Copyright © 2022 MicroStream Software. All rights reserved.