@ThreadSafe public final class EvictionPlan extends Object
Constructor and Description |
---|
EvictionPlan(List<BlockTransferInfo> toTransfer,
List<Pair<Long,BlockStoreLocation>> toEvict)
Creates a new instance of
EvictionPlan . |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty()
Whether the plan is empty, an empty plan means both toMove and toEvict are empty, also, an
empty plan indicates no action (move or evict) needs to be taken to meet the requirement.
|
List<Pair<Long,BlockStoreLocation>> |
toEvict() |
List<BlockTransferInfo> |
toMove() |
String |
toString() |
public EvictionPlan(List<BlockTransferInfo> toTransfer, List<Pair<Long,BlockStoreLocation>> toEvict)
EvictionPlan
.toTransfer
- a list of block transfer informationtoEvict
- a list of blocks to be evictedpublic List<BlockTransferInfo> toMove()
public List<Pair<Long,BlockStoreLocation>> toEvict()
public boolean isEmpty()
Copyright © 2023. All Rights Reserved.