Brooklyn

brooklyn.entity.group.zoneaware
[Java] Class BalancingNodePlacementStrategy

java.lang.Object
  brooklyn.entity.group.zoneaware.BalancingNodePlacementStrategy
All Implemented Interfaces:
NodePlacementStrategy

public class BalancingNodePlacementStrategy

Default node placement strategy: attempts to keep the number of nodes balanced across the available locations.


Method Summary
java.util.List entitiesToRemove(Multimap currentMembers, int numToRemove)

java.util.List locationsForAdditions(Multimap currentMembers, java.util.Collection locs, int numToAdd)

protected java.util.Collection pickNewest(java.util.Collection contenders, java.lang.Integer numToPick)

protected java.util.Map toMutableLocationSizes(Multimap currentMembers, java.lang.Iterable otherLocs)

 
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()
 

Method Detail

entitiesToRemove

public List entitiesToRemove(Multimap currentMembers, int numToRemove) {
public java.util.List entitiesToRemove(Multimap currentMembers, int numToRemove)


locationsForAdditions

@Override
public java.util.List locationsForAdditions(Multimap currentMembers, java.util.Collection locs, int numToAdd)


pickNewest

protected java.util.Collection pickNewest(java.util.Collection contenders, java.lang.Integer numToPick)


toMutableLocationSizes

protected java.util.Map toMutableLocationSizes(Multimap currentMembers, java.lang.Iterable otherLocs)


 

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