public class BalancingNodePlacementStrategy extends java.lang.Object implements DynamicCluster.NodePlacementStrategy
| Constructor and Description |
|---|
BalancingNodePlacementStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Entity> |
entitiesToRemove(com.google.common.collect.Multimap<Location,Entity> currentMembers,
int numToRemove) |
java.util.List<Location> |
locationsForAdditions(com.google.common.collect.Multimap<Location,Entity> currentMembers,
java.util.Collection<? extends Location> locs,
int numToAdd) |
public java.util.List<Location> locationsForAdditions(com.google.common.collect.Multimap<Location,Entity> currentMembers, java.util.Collection<? extends Location> locs, int numToAdd)
locationsForAdditions in interface DynamicCluster.NodePlacementStrategypublic java.util.List<Entity> entitiesToRemove(com.google.common.collect.Multimap<Location,Entity> currentMembers, int numToRemove)
entitiesToRemove in interface DynamicCluster.NodePlacementStrategy