public class BalancingNodePlacementStrategy extends java.lang.Object implements DynamicCluster.NodePlacementStrategy
Instance(s) are immutable. It is safe to use this as a shared default config value.
Constructor and Description |
---|
BalancingNodePlacementStrategy() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Entity> |
entitiesToRemove(<any> currentMembers,
int numToRemove) |
java.util.List<Location> |
locationsForAdditions(<any> currentMembers,
java.util.Collection<? extends Location> locs,
int numToAdd) |
java.lang.String |
toString() |
public java.util.List<Location> locationsForAdditions(<any> currentMembers, java.util.Collection<? extends Location> locs, int numToAdd)
locationsForAdditions
in interface DynamicCluster.NodePlacementStrategy
public java.util.List<Entity> entitiesToRemove(<any> currentMembers, int numToRemove)
entitiesToRemove
in interface DynamicCluster.NodePlacementStrategy
public java.lang.String toString()
toString
in class java.lang.Object