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( |
java.util.List<Location> |
locationsForAdditions( |
public java.util.List<Location> locationsForAdditions(currentMembers, java.util.Collection<? extends Location> locs, int numToAdd)
locationsForAdditions
in interface DynamicCluster.NodePlacementStrategy
public java.util.List<Entity> entitiesToRemove(currentMembers, int numToRemove)
entitiesToRemove
in interface DynamicCluster.NodePlacementStrategy