public static final class

SemiAutoRebalancerConfig.Builder

extends PartitionedRebalancerConfig.AbstractBuilder<T extends AbstractBuilder<T>>
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>>
       ↳ org.apache.helix.controller.rebalancer.config.SemiAutoRebalancerConfig.Builder

Class Overview

Build a SemiAutoRebalancerConfig. By default, it corresponds to SemiAutoRebalancer

Summary

Public Constructors
SemiAutoRebalancerConfig.Builder(ResourceId resourceId)
Instantiate for a resource
Public Methods
SemiAutoRebalancerConfig build()
Get the rebalancer config from the built fields
SemiAutoRebalancerConfig.Builder preferenceList(PartitionId partitionId, List<ParticipantId> preferenceList)
Add a preference list for a partition
Protected Methods
SemiAutoRebalancerConfig.Builder self()
Get a typed reference to "this" class.
[Expand]
Inherited Methods
From class org.apache.helix.controller.rebalancer.config.PartitionedRebalancerConfig.AbstractBuilder
From class org.apache.helix.controller.rebalancer.config.BasicRebalancerConfig.AbstractBuilder
From class java.lang.Object

Public Constructors

public SemiAutoRebalancerConfig.Builder (ResourceId resourceId)

Instantiate for a resource

Parameters
resourceId resource id

Public Methods

public SemiAutoRebalancerConfig build ()

Get the rebalancer config from the built fields

Returns
  • RebalancerConfig

public SemiAutoRebalancerConfig.Builder preferenceList (PartitionId partitionId, List<ParticipantId> preferenceList)

Add a preference list for a partition

Parameters
partitionId partition to set
preferenceList ordered list of participants who can serve the partition
Returns
  • Builder

Protected Methods

protected SemiAutoRebalancerConfig.Builder self ()

Get a typed reference to "this" class. Final derived classes should simply return the this reference.

Returns
  • this for the most specific type