| org.apache.helix.controller.strategy.AutoRebalanceStrategy.ReplicaPlacementScheme |
Known Indirect Subclasses
|
Interface for providing a custom approach to computing a replica's affinity to a node.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Given properties of this replica, determine the node it would prefer to be served by
| |||||||||||
Initialize global state
| |||||||||||
Given properties of this replica, determine the node it would prefer to be served by
| partitionId | The current partition |
|---|---|
| replicaId | The current replica with respect to the current partition |
| numPartitions | The total number of partitions |
| numReplicas | The total number of replicas per partition |
| nodeNames | A list of identifiers of all nodes, live and non-live |
Initialize global state
| manager | The instance to which this placement is associated |
|---|