public class TierManagementTaskProvider extends Object implements ManagementTaskProvider
ManagementTaskProviderimplementation for tier management tasks. It currently creates three types of tasks: 1-
AlignTaskfor aligning tiers based on user access pattern. 2-
SwapRestoreTaskfor when swap task can't run due to reserved space exhaustion. 3-
PromoteTaskfor utilizing speed of higher tiers by moving blocks from below.
|Constructor and Description|
Creates a task provider for tier management functions.
|Modifier and Type||Method and Description|
Used to set whether swap-restore task is required.
public TierManagementTaskProvider(BlockStore blockStore, BlockMetadataManager metadataManager, java.util.function.Supplier<BlockMetadataEvictorView> evictorViewSupplier, StoreLoadTracker loadTracker, ExecutorService executor)
blockStore- the block store
metadataManager- the meta manager
evictorViewSupplier- the evictor view supplier
loadTracker- the load tracker
executor- the executor
public static void setSwapRestoreRequired(boolean swapRestoreRequired)
AlignTaskwhen a swap fails due to insufficient reserved space.
swapRestoreRequired- whether swap-restore task needs to run
Copyright © 2021. All Rights Reserved.