Brooklyn

brooklyn.policy.loadbalancing
[Java] Class PolicyUtilForPool

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

PolicyUtilForPool

public PolicyUtilForPool(BalanceablePoolModel model)


 
Method Detail

findColdestContainer

public ContainerType findColdestContainer(java.util.Set excludedContainers)


findColdestContainer

public 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.


findHottestContainer

public 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.


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.