Package one.microstream.storage.types
Class StorageFileManager.Default
- java.lang.Object
-
- one.microstream.storage.types.StorageFileManager.Default
-
- All Implemented Interfaces:
StorageFileManager,StorageFileUser,StorageReaderCallback
- Enclosing interface:
- StorageFileManager
public static final class StorageFileManager.Default extends Object implements StorageFileManager, StorageReaderCallback, StorageFileUser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFileManager
StorageFileManager.Default
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageReaderCallback
StorageReaderCallback.Default
-
-
Constructor Summary
Constructors Constructor Description Default(int channelIndex, StorageInitialDataFileNumberProvider initialDataFileNumberProvider, StorageTimestampProvider timestampProvider, StorageFileProvider storageFileProvider, StorageDataFileEvaluator dataFileEvaluator, StorageEntityCache.Default entityCache, StorageFileReader reader, StorageFileWriter writer, BufferSizeProvider standardBufferSizeProvider, StorageBackupHandler backupHandler)
-
Method Summary
Modifier and Type Method Description intchannelIndex()voidcommitImport(long taskTimestamp)voidcommitWrite()voidcopyData(StorageChannelImportSourceFile importFile)StorageRawFileStatistics.ChannelStatisticscreateRawFileStatistics()StorageDataFile.DefaultcurrentStorageFile()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)voidvalidateIncrementalRead(StorageLockedFile fileChannel, long filePosition, ByteBuffer buffer, long lastReadCount)
-
-
-
Constructor Detail
-
Default
public Default(int channelIndex, StorageInitialDataFileNumberProvider initialDataFileNumberProvider, StorageTimestampProvider timestampProvider, StorageFileProvider storageFileProvider, StorageDataFileEvaluator dataFileEvaluator, StorageEntityCache.Default entityCache, StorageFileReader reader, StorageFileWriter writer, BufferSizeProvider standardBufferSizeProvider, StorageBackupHandler backupHandler)
-
-
Method Detail
-
channelIndex
public final int channelIndex()
- Specified by:
channelIndexin interfaceStorageFileManager
-
currentStorageFile
public final StorageDataFile.Default currentStorageFile()
- Specified by:
currentStorageFilein interfaceStorageFileManager
-
iterateStorageFiles
public void iterateStorageFiles(Consumer<? super StorageDataFile<?>> procedure)
- Specified by:
iterateStorageFilesin interfaceStorageFileManager
-
storeChunks
public final long[] storeChunks(long timestamp, ByteBuffer[] dataBuffers) throws StorageExceptionIoWritingChunk- Specified by:
storeChunksin interfaceStorageFileManager- Throws:
StorageExceptionIoWritingChunk
-
rollbackWrite
public final void rollbackWrite()
- Specified by:
rollbackWritein interfaceStorageFileManager
-
commitWrite
public final void commitWrite()
- Specified by:
commitWritein interfaceStorageFileManager
-
validateIncrementalRead
public void validateIncrementalRead(StorageLockedFile fileChannel, long filePosition, ByteBuffer buffer, long lastReadCount) throws IOException
- Specified by:
validateIncrementalReadin interfaceStorageReaderCallback- Throws:
IOException
-
readStorage
public final StorageInventory readStorage()
- Specified by:
readStoragein interfaceStorageFileManager
-
initializeStorage
public StorageIdAnalysis initializeStorage(long taskTimestamp, long consistentStoreTimestamp, StorageInventory storageInventory)
- Specified by:
initializeStoragein interfaceStorageFileManager
-
exportData
public void exportData(StorageIoHandler fileHandler)
- Specified by:
exportDatain interfaceStorageFileManager
-
createRawFileStatistics
public final StorageRawFileStatistics.ChannelStatistics createRawFileStatistics()
- Specified by:
createRawFileStatisticsin interfaceStorageFileManager
-
incrementalFileCleanupCheck
public final boolean incrementalFileCleanupCheck(long nanoTimeBudgetBound)
- Specified by:
incrementalFileCleanupCheckin interfaceStorageFileManager
-
resetFileCleanupCursor
public final void resetFileCleanupCursor()
- Specified by:
resetFileCleanupCursorin interfaceStorageFileManager
-
issuedFileCleanupCheck
public final boolean issuedFileCleanupCheck(long nanoTimeBudgetBound, StorageDataFileDissolvingEvaluator fileDissolver)- Specified by:
issuedFileCleanupCheckin interfaceStorageFileManager
-
copyData
public void copyData(StorageChannelImportSourceFile importFile)
-
commitImport
public void commitImport(long taskTimestamp)
-
-