Package one.microstream.storage.types
Interface StorageFileManager
-
- All Superinterfaces:
one.microstream.typing.Disposable,StorageChannelResetablePart,StorageHashChannelPart
- All Known Implementing Classes:
StorageFileManager.Default
public interface StorageFileManager extends StorageChannelResetablePart, one.microstream.typing.Disposable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStorageFileManager.Default
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
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
long[] storeChunks(long timestamp, ByteBuffer[] dataBuffers) throws StorageExceptionIoWritingChunk- 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
void iterateStorageFiles(Consumer<? super StorageLiveDataFile> procedure)
-
incrementalFileCleanupCheck
boolean incrementalFileCleanupCheck(long nanoTimeBudgetBound)
-
issuedFileCleanupCheck
boolean issuedFileCleanupCheck(long nanoTimeBudgetBound)
-
exportData
void exportData(StorageLiveFileProvider fileProvider)
-
createRawFileStatistics
StorageRawFileStatistics.ChannelStatistics createRawFileStatistics()
-
restartFileCleanupCursor
void restartFileCleanupCursor()
-
-