Package one.microstream.storage.types
Class StorageChannel.Default
java.lang.Object
one.microstream.storage.types.StorageChannel.Default
- All Implemented Interfaces:
- Runnable,- Unpersistable,- StorageActivePart,- StorageChannel,- StorageChannelResetablePart,- StorageHashChannelPart,- StorageHousekeepingExecutor
- Enclosing interface:
- StorageChannel
public static final class StorageChannel.Default extends Object implements StorageChannel, Unpersistable, StorageHousekeepingExecutor
- 
Nested Class SummaryNested classes/interfaces inherited from interface one.microstream.storage.types.StorageChannelStorageChannel.Default, StorageChannel.EntityCollectorByOid, StorageChannel.EntityCollectorByTid, StorageChannel.HousekeepingTask
- 
Constructor SummaryConstructors Constructor Description Default(int hashIndex, StorageExceptionHandler exceptionHandler, StorageTaskBroker taskBroker, StorageOperationController operationController, StorageHousekeepingBroker housekeepingBroker, StorageHousekeepingController housekeepingController, StorageEntityCache.Default entityCache, boolean switchByteOrder, BufferSizeProviderIncremental loadingBufferSizeProvider, StorageFileManager.Default fileManager, StorageEventLogger eventLogger)
- 
Method Summary
- 
Constructor Details- 
Defaultpublic Default(int hashIndex, StorageExceptionHandler exceptionHandler, StorageTaskBroker taskBroker, StorageOperationController operationController, StorageHousekeepingBroker housekeepingBroker, StorageHousekeepingController housekeepingController, StorageEntityCache.Default entityCache, boolean switchByteOrder, BufferSizeProviderIncremental loadingBufferSizeProvider, StorageFileManager.Default fileManager, StorageEventLogger eventLogger)
 
- 
- 
Method Details- 
performIssuedGarbageCollectionpublic boolean performIssuedGarbageCollection(long nanoTimeBudget)- Specified by:
- performIssuedGarbageCollectionin interface- StorageHousekeepingExecutor
 
- 
performIssuedFileCleanupCheckpublic boolean performIssuedFileCleanupCheck(long nanoTimeBudget)- Specified by:
- performIssuedFileCleanupCheckin interface- StorageHousekeepingExecutor
 
- 
performIssuedEntityCacheCheckpublic boolean performIssuedEntityCacheCheck(long nanoTimeBudget, StorageEntityCacheEvaluator evaluator)- Specified by:
- performIssuedEntityCacheCheckin interface- StorageHousekeepingExecutor
 
- 
performFileCleanupCheckpublic final boolean performFileCleanupCheck(long nanoTimeBudget)- Specified by:
- performFileCleanupCheckin interface- StorageHousekeepingExecutor
 
- 
performGarbageCollectionpublic boolean performGarbageCollection(long nanoTimeBudget)- Specified by:
- performGarbageCollectionin interface- StorageHousekeepingExecutor
 
- 
performEntityCacheCheckpublic boolean performEntityCacheCheck(long nanoTimeBudget)- Specified by:
- performEntityCacheCheckin interface- StorageHousekeepingExecutor
 
- 
issuedGarbageCollectionpublic final boolean issuedGarbageCollection(long nanoTimeBudget)- Specified by:
- issuedGarbageCollectionin interface- StorageChannel
 
- 
issuedFileCleanupCheckpublic boolean issuedFileCleanupCheck(long nanoTimeBudget)- Specified by:
- issuedFileCleanupCheckin interface- StorageChannel
 
- 
issuedEntityCacheCheckpublic boolean issuedEntityCacheCheck(long nanoTimeBudget, StorageEntityCacheEvaluator entityEvaluator)- Specified by:
- issuedEntityCacheCheckin interface- StorageChannel
 
- 
isActivepublic boolean isActive()Description copied from interface:StorageActivePartQueries whether the part is actually active right now. This might returntrueeven despite some "running" flag being set tofalsebecause there might be one last loop cycle execution before checking the "running" flag again.- Specified by:
- isActivein interface- StorageActivePart
- Returns:
- if the part is actually active right now.
 
- 
runpublic final void run()
- 
commitChunkStoragepublic void commitChunkStorage()- Specified by:
- commitChunkStoragein interface- StorageChannel
 
- 
storeEntities- Specified by:
- storeEntitiesin interface- StorageChannel
 
- 
postStoreUpdateEntityCachepublic void postStoreUpdateEntityCache(ByteBuffer[] chunks, long[] chunksStoragePositions) throws InterruptedException- Specified by:
- postStoreUpdateEntityCachein interface- StorageChannel
- Throws:
- InterruptedException
 
- 
channelIndexpublic final int channelIndex()- Specified by:
- channelIndexin interface- StorageHashChannelPart
 
- 
typeDictionary- Specified by:
- typeDictionaryin interface- StorageChannel
 
- 
collectLoadByOids- Specified by:
- collectLoadByOidsin interface- StorageChannel
 
- 
collectLoadRoots- Specified by:
- collectLoadRootsin interface- StorageChannel
 
- 
collectLoadByTids- Specified by:
- collectLoadByTidsin interface- StorageChannel
 
- 
exportData- Specified by:
- exportDatain interface- StorageChannel
 
- 
prepareImportData- Specified by:
- prepareImportDatain interface- StorageChannel
 
- 
importData- Specified by:
- importDatain interface- StorageChannel
 
- 
rollbackImportData- Specified by:
- rollbackImportDatain interface- StorageChannel
 
- 
commitImportDatapublic void commitImportData(long taskTimestamp)- Specified by:
- commitImportDatain interface- StorageChannel
 
- 
exportTypeEntitiespublic final KeyValue<Long,Long> exportTypeEntities(StorageEntityTypeHandler type, AWritableFile file, Predicate<? super StorageEntity> predicateEntity) throws IOException- Specified by:
- exportTypeEntitiesin interface- StorageChannel
- Throws:
- IOException
 
- 
exportTypeEntitiespublic final KeyValue<Long,Long> exportTypeEntities(StorageEntityTypeHandler type, AWritableFile file) throws IOException- Specified by:
- exportTypeEntitiesin interface- StorageChannel
- Throws:
- IOException
 
- 
createRawFileStatistics- Specified by:
- createRawFileStatisticsin interface- StorageChannel
 
- 
rollbackChunkStoragepublic final void rollbackChunkStorage()- Specified by:
- rollbackChunkStoragein interface- StorageChannel
 
- 
readStorage- Specified by:
- readStoragein interface- StorageChannel
 
- 
initializeStoragepublic final StorageIdAnalysis initializeStorage(long taskTimestamp, long consistentStoreTimestamp, StorageInventory storageInventory)- Specified by:
- initializeStoragein interface- StorageChannel
 
- 
resetpublic final void reset()Closes 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
 
- 
signalGarbageCollectionSweepCompletedpublic final void signalGarbageCollectionSweepCompleted()- Specified by:
- signalGarbageCollectionSweepCompletedin interface- StorageChannel
 
- 
cleanupStorepublic void cleanupStore()- Specified by:
- cleanupStorein interface- StorageChannel
 
 
-