public static final class

CustomRebalancerContext.Builder

extends PartitionedRebalancerContext.AbstractBuilder<T extends AbstractBuilder<T>>
java.lang.Object
   ↳ org.apache.helix.controller.rebalancer.context.BasicRebalancerContext.AbstractBuilder<T extends org.apache.helix.controller.rebalancer.context.BasicRebalancerContext.AbstractBuilder<T>>
     ↳ org.apache.helix.controller.rebalancer.context.PartitionedRebalancerContext.AbstractBuilder<T extends org.apache.helix.controller.rebalancer.context.BasicRebalancerContext.AbstractBuilder<T>>
       ↳ org.apache.helix.controller.rebalancer.context.CustomRebalancerContext.Builder

Class Overview

Build a CustomRebalancerContext. By default, it corresponds to CustomRebalancer

Summary

Public Constructors
CustomRebalancerContext.Builder(ResourceId resourceId)
Instantiate for a resource
Public Methods
CustomRebalancerContext build()
Get the rebalancer context from the built fields
CustomRebalancerContext.Builder preferenceMap(PartitionId partitionId, Map<ParticipantIdState> preferenceMap)
Add a preference map for a partition
Protected Methods
CustomRebalancerContext.Builder self()
Get a typed reference to "this" class.
[Expand]
Inherited Methods
From class org.apache.helix.controller.rebalancer.context.PartitionedRebalancerContext.AbstractBuilder
From class org.apache.helix.controller.rebalancer.context.BasicRebalancerContext.AbstractBuilder
From class java.lang.Object

Public Constructors

public CustomRebalancerContext.Builder (ResourceId resourceId)

Instantiate for a resource

Parameters
resourceId resource id

Public Methods

public CustomRebalancerContext build ()

Get the rebalancer context from the built fields

Returns
  • RebalancerContext

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

Add a preference map for a partition

Parameters
partitionId partition to set
Returns
  • Builder

Protected Methods

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