public class TierManagementTaskProvider extends Object implements ManagementTaskProvider
ManagementTaskProvider
implementation for tier management tasks.
It currently creates three types of tasks:
1- AlignTask
for aligning tiers based on user access pattern.
2- SwapRestoreTask
for when swap task can't run due to reserved space exhaustion.
3- PromoteTask
for utilizing speed of higher tiers by moving blocks from below.Constructor and Description |
---|
TierManagementTaskProvider(BlockStore blockStore,
BlockMetadataManager metadataManager,
java.util.function.Supplier<BlockMetadataEvictorView> evictorViewSupplier,
StoreLoadTracker loadTracker,
ExecutorService executor)
Creates a task provider for tier management functions.
|
Modifier and Type | Method and Description |
---|---|
BlockManagementTask |
getTask() |
static void |
setSwapRestoreRequired(boolean swapRestoreRequired)
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 storemetadataManager
- the meta managerevictorViewSupplier
- the evictor view supplierloadTracker
- the load trackerexecutor
- the executorpublic static void setSwapRestoreRequired(boolean swapRestoreRequired)
AlignTask
when a swap fails due to insufficient reserved space.swapRestoreRequired
- whether swap-restore task needs to runpublic BlockManagementTask getTask()
getTask
in interface ManagementTaskProvider
Copyright © 2023. All Rights Reserved.