java.lang.Object | ||
↳ | org.apache.helix.controller.rebalancer.config.BasicRebalancerConfig.AbstractBuilder<T extends org.apache.helix.controller.rebalancer.config.BasicRebalancerConfig.AbstractBuilder<T>> | |
↳ | org.apache.helix.controller.rebalancer.config.PartitionedRebalancerConfig.AbstractBuilder<T extends org.apache.helix.controller.rebalancer.config.BasicRebalancerConfig.AbstractBuilder<T>> |
Known Direct Subclasses |
Abstract builder for a generic partitioned resource rebalancer config
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate with a resource
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a partition that the resource serves
| |||||||||||
Add a specified number of partitions with a default naming scheme, namely
resourceId_partitionNumber where partitionNumber starts at 0
| |||||||||||
Add a collection of partitions
| |||||||||||
Set whether any live participant should be used in rebalancing
| |||||||||||
Set the maximum number of partitions to assign to any participant
| |||||||||||
Set the rebalance mode for a partitioned rebalancer config
| |||||||||||
Set the number of replicas
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Update a PartitionedRebalancerConfig with fields from this builder level
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.helix.controller.rebalancer.config.BasicRebalancerConfig.AbstractBuilder
| |||||||||||
From class
java.lang.Object
|
Instantiate with a resource
resourceId | resource id |
---|
Add a partition that the resource serves
partition | fully-qualified partition |
---|
Add a specified number of partitions with a default naming scheme, namely resourceId_partitionNumber where partitionNumber starts at 0
partitionCount | number of partitions to add |
---|
Add a collection of partitions
partitions | any collection of Partition objects |
---|
Set whether any live participant should be used in rebalancing
anyLiveParticipant | true if any live participant can be used, false otherwise |
---|
Set the maximum number of partitions to assign to any participant
maxPartitionsPerParticipant | the maximum |
---|
Set the rebalance mode for a partitioned rebalancer config
rebalanceMode | IdealState.RebalanceMode enum value |
---|
Set the number of replicas
replicaCount | number of replicas |
---|
Update a PartitionedRebalancerConfig with fields from this builder level
config | PartitionedRebalancerConfig |
---|