public static final class

CustomRebalancerConfig.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.CustomRebalancerConfig.Builder

Class Overview

Build a CustomRebalancerConfig. By default, it corresponds to CustomRebalancer

Summary

Public Constructors
CustomRebalancerConfig.Builder(ResourceId resourceId)
Instantiate for a resource
Public Methods
CustomRebalancerConfig build()
Get the rebalancer config from the built fields
CustomRebalancerConfig.Builder preferenceMap(PartitionId partitionId, Map<ParticipantIdState> preferenceMap)
Add a preference map for a partition
Protected Methods
CustomRebalancerConfig.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 CustomRebalancerConfig.Builder (ResourceId resourceId)

Instantiate for a resource

Parameters
resourceId resource id

Public Methods

public CustomRebalancerConfig build ()

Get the rebalancer config from the built fields

Returns
  • RebalancerConfig

public CustomRebalancerConfig.Builder preferenceMap (PartitionId partitionId, Map<ParticipantIdState> preferenceMap)

Add a preference map for a partition

Parameters
partitionId partition to set
Returns
  • Builder

Protected Methods

protected CustomRebalancerConfig.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