java.lang.Object | ||
↳ | org.apache.helix.controller.rebalancer.config.BasicRebalancerConfig | |
↳ | org.apache.helix.controller.rebalancer.config.PartitionedRebalancerConfig |
Known Direct Subclasses |
RebalancerConfig for a resource whose subunits are partitions. In addition, these partitions can be replicated.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PartitionedRebalancerConfig.AbstractBuilder<T extends AbstractBuilder<T>> | Abstract builder for a generic partitioned resource rebalancer config | ||||||||||
PartitionedRebalancerConfig.Builder | Builder for a basic data rebalancer config |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate a PartitionedRebalancerConfig
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check if this resource should be assigned to any live participant
| |||||||||||
Safely get a
PartitionedRebalancerConfig from a RebalancerConfig | |||||||||||
Convert a physically-stored IdealState into a rebalancer config for a partitioned resource
| |||||||||||
Generate a default configuration given the state model and a participant.
| |||||||||||
Get the maximum number of partitions that a participant can serve
| |||||||||||
Get a partition
| |||||||||||
Get a map from partition id to partition
| |||||||||||
Get the set of partitions for this resource
| |||||||||||
Get the rebalancer mode of the resource
| |||||||||||
Get the number of replicas that each resource subunit should have
| |||||||||||
Get a map of resource partition identifiers to partitions.
| |||||||||||
Indicate if this resource should be assigned to any live participant
| |||||||||||
Set the maximum number of partitions that a participant can serve
| |||||||||||
Set a map of partition id to partition
| |||||||||||
Set the rebalancer mode of the partitioned resource
| |||||||||||
Set the number of replicas that each partition should have
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.helix.controller.rebalancer.config.BasicRebalancerConfig
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.helix.controller.rebalancer.config.RebalancerConfig
| |||||||||||
From interface
org.apache.helix.controller.rebalancer.config.ReplicatedRebalancerConfig
|
Instantiate a PartitionedRebalancerConfig
Check if this resource should be assigned to any live participant
Safely get a PartitionedRebalancerConfig
from a RebalancerConfig
config | the base config |
---|
PartitionedRebalancerConfig
, or null if the conversion is not possible
Convert a physically-stored IdealState into a rebalancer config for a partitioned resource
idealState | populated IdealState |
---|
Generate a default configuration given the state model and a participant.
stateModelDef | the state model definition to follow |
---|---|
participantSet | the set of participant ids to configure for |
Get the maximum number of partitions that a participant can serve
Get a partition
partitionId | id of the partition to get |
---|
Get a map from partition id to partition
Get the set of partitions for this resource
Get the rebalancer mode of the resource
Get the number of replicas that each resource subunit should have
Get a map of resource partition identifiers to partitions. A partition is a subunit of a resource, e.g. a subtask of a task
Indicate if this resource should be assigned to any live participant
anyLiveParticipant | true if any live participant expected, false otherwise |
---|
Set the maximum number of partitions that a participant can serve
maxPartitionsPerParticipant | maximum number of partitions per participant |
---|
Set a map of partition id to partition
partitionMap | partition map |
---|
Set the rebalancer mode of the partitioned resource
rebalanceMode | IdealState.RebalanceMode enum value
|
---|
Set the number of replicas that each partition should have