public static final class

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

Class Overview

Build a SemiAutoRebalancerContext. By default, it corresponds to SemiAutoRebalancer

Summary

Public Constructors
SemiAutoRebalancerContext.Builder(ResourceId resourceId)
Instantiate for a resource
Public Methods
SemiAutoRebalancerContext build()
Get the rebalancer context from the built fields
SemiAutoRebalancerContext.Builder preferenceList(PartitionId partitionId, List<ParticipantId> preferenceList)
Add a preference list for a partition
Protected Methods
SemiAutoRebalancerContext.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 SemiAutoRebalancerContext.Builder (ResourceId resourceId)

Instantiate for a resource

Parameters
resourceId resource id

Public Methods

public SemiAutoRebalancerContext build ()

Get the rebalancer context from the built fields

Returns
  • RebalancerContext

public SemiAutoRebalancerContext.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 SemiAutoRebalancerContext.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