public class PolicyUtilForPool<ContainerType,ItemType>
extends java.lang.Object
Constructor and Description |
---|
PolicyUtilForPool(BalanceablePoolModel<ContainerType,ItemType> model) |
Modifier and Type | Method and Description |
---|---|
ContainerType |
findColdestContainer(java.util.Set<ContainerType> excludedContainers) |
ContainerType |
findColdestContainer(java.util.Set<ContainerType> excludedContainers,
LocationConstraint locationConstraint)
Identifies the container with the maximum spare capacity (highThreshold - currentWorkrate),
returns null if none of the model's nodes has spare capacity.
|
ContainerType |
findHottestContainer(java.util.Set<ContainerType> excludedContainers)
Identifies the container with the maximum overshoot (currentWorkrate - highThreshold),
returns null if none of the model's nodes has an overshoot.
|
public PolicyUtilForPool(BalanceablePoolModel<ContainerType,ItemType> model)
public ContainerType findColdestContainer(java.util.Set<ContainerType> excludedContainers)
public ContainerType findColdestContainer(java.util.Set<ContainerType> excludedContainers, LocationConstraint locationConstraint)
public ContainerType findHottestContainer(java.util.Set<ContainerType> excludedContainers)