public abstract class

IdealStateBuilder

extends Object
java.lang.Object
   ↳ org.apache.helix.model.builder.IdealStateBuilder
Known Direct Subclasses

Summary

Fields
protected ZNRecord _record
protected IdealState.RebalanceMode rebalancerMode Helix rebalancer strategies.
Public Constructors
IdealStateBuilder(String resourceName)
Public Methods
IdealState build()
IdealStateBuilder setMaxPartitionsPerNode(int maxPartitionsPerNode)
IdealStateBuilder setNodeGroup(String nodeGroup)
IdealStateBuilder setNumPartitions(int numPartitions)
IdealStateBuilder setNumReplica(int numReplica)
IdealStateBuilder setRebalancerMode(IdealState.RebalanceMode rebalancerMode)
sub-class should implement this to set ideal-state mode
IdealStateBuilder setStateModel(String stateModel)
IdealStateBuilder setStateModelFactoryName(String stateModelFactoryName)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected ZNRecord _record

protected IdealState.RebalanceMode rebalancerMode

Helix rebalancer strategies. AUTO, SEMI_AUTO, CUSTOMIZED

Public Constructors

public IdealStateBuilder (String resourceName)

Public Methods

public IdealState build ()

public IdealStateBuilder setMaxPartitionsPerNode (int maxPartitionsPerNode)

public IdealStateBuilder setNodeGroup (String nodeGroup)

public IdealStateBuilder setNumPartitions (int numPartitions)

public IdealStateBuilder setNumReplica (int numReplica)

public IdealStateBuilder setRebalancerMode (IdealState.RebalanceMode rebalancerMode)

sub-class should implement this to set ideal-state mode

public IdealStateBuilder setStateModel (String stateModel)

public IdealStateBuilder setStateModelFactoryName (String stateModelFactoryName)