public class

AutoRebalanceStrategy

extends Object
java.lang.Object
   ↳ org.apache.helix.controller.strategy.AutoRebalanceStrategy

Summary

Nested Classes
class AutoRebalanceStrategy.DefaultPlacementScheme Compute preferred placements based on a default strategy that assigns replicas to nodes as evenly as possible while avoiding placing two replicas of the same partition on any node. 
interface AutoRebalanceStrategy.ReplicaPlacementScheme Interface for providing a custom approach to computing a replica's affinity to a node. 
Public Constructors
AutoRebalanceStrategy(String resourceName, List<String> partitions, LinkedHashMap<StringInteger> states, int maximumPerNode, AutoRebalanceStrategy.ReplicaPlacementScheme placementScheme)
AutoRebalanceStrategy(String resourceName, List<String> partitions, LinkedHashMap<StringInteger> states)
Public Methods
ZNRecord computePartitionAssignment(List<String> liveNodes, Map<StringMap<StringString>> currentMapping, List<String> allNodes)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AutoRebalanceStrategy (String resourceName, List<String> partitions, LinkedHashMap<StringInteger> states, int maximumPerNode, AutoRebalanceStrategy.ReplicaPlacementScheme placementScheme)

public AutoRebalanceStrategy (String resourceName, List<String> partitions, LinkedHashMap<StringInteger> states)

Public Methods

public ZNRecord computePartitionAssignment (List<String> liveNodes, Map<StringMap<StringString>> currentMapping, List<String> allNodes)