Package one.microstream.storage.types
Class StorageFileManager.Default
java.lang.Object
one.microstream.storage.types.StorageFileManager.Default
- All Implemented Interfaces:
StorageChannelResetablePart,StorageFileManager,StorageFileUser,StorageHashChannelPart
- Enclosing interface:
- StorageFileManager
public static final class StorageFileManager.Default extends Object implements StorageFileManager, StorageFileUser
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFileManager
StorageFileManager.Default -
Constructor Summary
Constructors Constructor Description Default(int channelIndex, StorageInitialDataFileNumberProvider initialDataFileNumberProvider, StorageTimestampProvider timestampProvider, StorageLiveFileProvider fileProvider, StorageDataFileEvaluator dataFileEvaluator, StorageEntityCache.Default entityCache, StorageWriteController writeController, StorageFileWriter writer, BufferSizeProvider standardBufferSizeProvider, StorageBackupHandler backupHandler) -
Method Summary
Modifier and Type Method Description intchannelIndex()voidcommitImport(long taskTimestamp)voidcommitWrite()voidcopyData(StorageImportSourceFile importFile)StorageRawFileStatistics.ChannelStatisticscreateRawFileStatistics()StorageLiveDataFile.DefaultcurrentStorageFile()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)
-
Constructor Details
-
Default
public Default(int channelIndex, StorageInitialDataFileNumberProvider initialDataFileNumberProvider, StorageTimestampProvider timestampProvider, StorageLiveFileProvider fileProvider, StorageDataFileEvaluator dataFileEvaluator, StorageEntityCache.Default entityCache, StorageWriteController writeController, StorageFileWriter writer, BufferSizeProvider standardBufferSizeProvider, StorageBackupHandler backupHandler)
-
-
Method Details
-
channelIndex
public final int channelIndex()- Specified by:
channelIndexin interfaceStorageFileManager- Specified by:
channelIndexin interfaceStorageHashChannelPart
-
currentStorageFile
- Specified by:
currentStorageFilein interfaceStorageFileManager
-
iterateStorageFiles
- 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
-
readStorage
- Specified by:
readStoragein interfaceStorageFileManager
-
initializeStorage
public StorageIdAnalysis initializeStorage(long taskTimestamp, long consistentStoreTimestamp, StorageInventory storageInventory, StorageChannel parent)- Specified by:
initializeStoragein interfaceStorageFileManager
-
reset
public final 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- Specified by:
resetin interfaceStorageFileManager
-
exportData
- Specified by:
exportDatain interfaceStorageFileManager
-
createRawFileStatistics
- Specified by:
createRawFileStatisticsin interfaceStorageFileManager
-
incrementalFileCleanupCheck
public final boolean incrementalFileCleanupCheck(long nanoTimeBudgetBound)- Specified by:
incrementalFileCleanupCheckin interfaceStorageFileManager
-
restartFileCleanupCursor
public final void restartFileCleanupCursor()- Specified by:
restartFileCleanupCursorin interfaceStorageFileManager
-
issuedFileCleanupCheck
public final boolean issuedFileCleanupCheck(long nanoTimeBudgetBound)- Specified by:
issuedFileCleanupCheckin interfaceStorageFileManager
-
copyData
-
commitImport
public void commitImport(long taskTimestamp)
-