| java.lang.Object | |
| ↳ | org.apache.helix.model.builder.StateConstraintItemBuilder | 
Build a ConstraintItem corresponding to a state bound
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate the builder
 
  
   | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the ConstraintItem instance that is built 
  
   | |||||||||||
Set an upper bound for the replicas that can be in a state. 
  
   | |||||||||||
Get the state to constrain 
  
   | |||||||||||
Get the state model definition to constrain 
  
   | |||||||||||
Set a numerical upper bound for the replicas that can be in a state 
  
   | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  java.lang.Object
 | |||||||||||
Instantiate the builder
Set an upper bound for the replicas that can be in a state. This can be numerical, or "N" for number of nodes, or "R" for total number of replicas per partition
| dynamicUpperBound | maximum replica count for a state, per partition, can also be "N" or "R" | 
|---|
Get the state to constrain
| state | state object | 
|---|
Get the state model definition to constrain
| stateModelDefId | state model definition identifier | 
|---|
Set a numerical upper bound for the replicas that can be in a state
| upperBound | maximum replica count for a state, per partition | 
|---|