|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object brooklyn.policy.loadbalancing.PolicyUtilForPool
public class PolicyUtilForPool
Provides conveniences for searching for hot/cold containers in a provided pool model. Ported from Monterey v3, with irrelevant bits removed.
Constructor Summary | |
PolicyUtilForPool(BalanceablePoolModel model)
|
Method Summary | |
---|---|
ContainerType
|
findColdestContainer(java.util.Set excludedContainers)
|
ContainerType
|
findColdestContainer(java.util.Set 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 excludedContainers)
Identifies the container with the maximum overshoot (currentWorkrate - highThreshold), returns null if none of the model's nodes has an overshoot. |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public PolicyUtilForPool(BalanceablePoolModel model)
Method Detail |
---|
public ContainerType findColdestContainer(java.util.Set excludedContainers)
public ContainerType findColdestContainer(java.util.Set excludedContainers, LocationConstraint locationConstraint)
public ContainerType findHottestContainer(java.util.Set excludedContainers)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.