Package one.microstream.storage.types
Interface StorageFileManager
- All Superinterfaces:
- StorageChannelResetablePart,- StorageHashChannelPart
- All Known Implementing Classes:
- StorageFileManager.Default
public interface StorageFileManager extends StorageChannelResetablePart
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classStorageFileManager.Default
- 
Method SummaryModifier 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- 
channelIndexint channelIndex()- Specified by:
- channelIndexin interface- StorageHashChannelPart
 
- 
resetvoid 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 interface- StorageChannelResetablePart
 
- 
storeChunks- Throws:
- StorageExceptionIoWritingChunk
 
- 
rollbackWritevoid rollbackWrite()
- 
commitWritevoid commitWrite()
- 
readStorageStorageInventory readStorage()
- 
initializeStorageStorageIdAnalysis initializeStorage(long taskTimestamp, long consistentStoreTimestamp, StorageInventory storageInventory, StorageChannel parent)
- 
currentStorageFileStorageLiveDataFile currentStorageFile()
- 
iterateStorageFiles
- 
incrementalFileCleanupCheckboolean incrementalFileCleanupCheck(long nanoTimeBudgetBound)
- 
issuedFileCleanupCheckboolean issuedFileCleanupCheck(long nanoTimeBudgetBound)
- 
exportData
- 
createRawFileStatisticsStorageRawFileStatistics.ChannelStatistics createRawFileStatistics()
- 
restartFileCleanupCursorvoid restartFileCleanupCursor()
 
-