| java.lang.Object | |||
| ↳ | org.apache.helix.controller.rebalancer.context.BasicRebalancerContext | ||
| ↳ | org.apache.helix.controller.rebalancer.context.PartitionedRebalancerContext | ||
| ↳ | org.apache.helix.controller.rebalancer.context.CustomRebalancerContext | ||
RebalancerContext for a resource that should be rebalanced in CUSTOMIZED mode. By default, it
corresponds to CustomRebalancer
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CustomRebalancerContext.Builder | Build a CustomRebalancerContext. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate a CustomRebalancerContext
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Generate preference maps based on a default cluster setup
| |||||||||||
Get the preference map of a partition
| |||||||||||
Get the preference maps of the partitions and replicas of the resource
| |||||||||||
Set the preference maps of the partitions and replicas of the resource
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.helix.controller.rebalancer.context.PartitionedRebalancerContext
| |||||||||||
From class
org.apache.helix.controller.rebalancer.context.BasicRebalancerContext
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.helix.controller.rebalancer.context.RebalancerContext
| |||||||||||
From interface
org.apache.helix.controller.rebalancer.context.ReplicatedRebalancerContext
| |||||||||||
Instantiate a CustomRebalancerContext
Generate preference maps based on a default cluster setup
| stateModelDef | the state model definition to follow |
|---|---|
| participantSet | the set of participant ids to configure for |
Get the preference map of a partition
| partitionId | the partition to look up |
|---|
Get the preference maps of the partitions and replicas of the resource
Set the preference maps of the partitions and replicas of the resource
| preferenceMaps | map of partition to participant and state |
|---|