Package one.microstream.storage.types
Interface StorageFileManager
-
- All Known Implementing Classes:
StorageFileManager.Default
public interface StorageFileManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStorageFileManager.Default
-
Method Summary
Modifier and Type Method Description intchannelIndex()voidcommitWrite()StorageRawFileStatistics.ChannelStatisticscreateRawFileStatistics()StorageDataFile<?>currentStorageFile()voidexportData(StorageIoHandler fileHandler)booleanincrementalFileCleanupCheck(long nanoTimeBudgetBound)StorageIdAnalysisinitializeStorage(long taskTimestamp, long consistentStoreTimestamp, StorageInventory storageInventory)booleanissuedFileCleanupCheck(long nanoTimeBudgetBound, StorageDataFileDissolvingEvaluator fileDissolver)voiditerateStorageFiles(Consumer<? super StorageDataFile<?>> procedure)StorageInventoryreadStorage()voidresetFileCleanupCursor()voidrollbackWrite()long[]storeChunks(long timestamp, ByteBuffer[] dataBuffers)
-
-
-
Method Detail
-
channelIndex
int channelIndex()
-
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)
-
currentStorageFile
StorageDataFile<?> currentStorageFile()
-
iterateStorageFiles
void iterateStorageFiles(Consumer<? super StorageDataFile<?>> procedure)
-
incrementalFileCleanupCheck
boolean incrementalFileCleanupCheck(long nanoTimeBudgetBound)
-
issuedFileCleanupCheck
boolean issuedFileCleanupCheck(long nanoTimeBudgetBound, StorageDataFileDissolvingEvaluator fileDissolver)
-
exportData
void exportData(StorageIoHandler fileHandler)
-
createRawFileStatistics
StorageRawFileStatistics.ChannelStatistics createRawFileStatistics()
-
resetFileCleanupCursor
void resetFileCleanupCursor()
-
-