Package one.microstream.storage.types
Interface StorageFileManager
- All Superinterfaces:
StorageChannelResetablePart,StorageHashChannelPart
- All Known Implementing Classes:
StorageFileManager.Default
public interface StorageFileManager extends StorageChannelResetablePart
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStorageFileManager.Default -
Method Summary
Modifier and Type Method Description intchannelIndex()voidcommitWrite()StorageRawFileStatistics.ChannelStatisticscreateRawFileStatistics()StorageLiveDataFilecurrentStorageFile()voidexportData(StorageLiveFileProvider fileProvider)booleanincrementalFileCleanupCheck(long nanoTimeBudgetBound)StorageIdAnalysisinitializeStorage(long taskTimestamp, long consistentStoreTimestamp, StorageInventory storageInventory, StorageChannel parent)booleanissuedFileCleanupCheck(long nanoTimeBudgetBound)voiditerateStorageFiles(Consumer<? super StorageLiveDataFile> procedure)StorageInventoryreadStorage()voidreset()Closes all resources (files, locks, etc.).voidrestartFileCleanupCursor()voidrollbackWrite()long[]storeChunks(long timestamp, ByteBuffer[] dataBuffers)
-
Method Details
-
channelIndex
int channelIndex()- Specified by:
channelIndexin interfaceStorageHashChannelPart
-
reset
void reset()Description copied from interface:StorageChannelResetablePartCloses all resources (files, locks, etc.). Clears all variable length items (cache, registry, etc.). Resets internal state to initial values. For itself and all its parts (entity cache, file manager, etc.). Basically a "back to just being born" action.- Specified by:
resetin interfaceStorageChannelResetablePart
-
storeChunks
- Throws:
StorageExceptionIoWritingChunk
-
rollbackWrite
void rollbackWrite() -
commitWrite
void commitWrite() -
readStorage
StorageInventory readStorage() -
initializeStorage
StorageIdAnalysis initializeStorage(long taskTimestamp, long consistentStoreTimestamp, StorageInventory storageInventory, StorageChannel parent) -
currentStorageFile
StorageLiveDataFile currentStorageFile() -
iterateStorageFiles
-
incrementalFileCleanupCheck
boolean incrementalFileCleanupCheck(long nanoTimeBudgetBound) -
issuedFileCleanupCheck
boolean issuedFileCleanupCheck(long nanoTimeBudgetBound) -
exportData
-
createRawFileStatistics
StorageRawFileStatistics.ChannelStatistics createRawFileStatistics() -
restartFileCleanupCursor
void restartFileCleanupCursor()
-