java.lang.Object | |
↳ | org.apache.helix.api.config.ClusterConfig.Builder |
Assembles a cluster configuration
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialize builder for a cluster
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add alert specifications to the cluster.
| |||||||||||
Add alert specifications to the cluster.
| |||||||||||
Add a constraint to the cluster
| |||||||||||
Add a single constraint item
| |||||||||||
Add multiple constraints to the cluster
| |||||||||||
Add a participant to the cluster
| |||||||||||
Add multiple participants to the cluster
| |||||||||||
Add a resource to the cluster
| |||||||||||
Add multiple resources to the cluster
| |||||||||||
Add a statistic specification to the cluster.
| |||||||||||
Add a state model definition to the cluster
| |||||||||||
Add multiple state model definitions
| |||||||||||
Add a state upper bound constraint
| |||||||||||
Add a state upper bound constraint
| |||||||||||
Add statistic specifications to the cluster.
| |||||||||||
Add a constraint on the maximum number of in-flight transitions of a certain type
| |||||||||||
Allow or disallow participants from automatically being able to join the cluster
| |||||||||||
Create the cluster configuration
| |||||||||||
Set the paused status of the cluster
| |||||||||||
Set the user configuration
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Initialize builder for a cluster
id | cluster id |
---|
Add alert specifications to the cluster. Existing specifications will not be overwritten
alert | string representing alert specifications |
---|
Add alert specifications to the cluster. Existing specifications will not be overwritten
alerts | Alerts instance |
---|
Add a constraint to the cluster
constraint | cluster constraint of a specific type |
---|
Add a single constraint item
type | type of the constraint |
---|---|
constraintId | unique constraint identifier |
item | instantiated ConstraintItem |
Add multiple constraints to the cluster
constraints | cluster constraints of multiple distinct types |
---|
Add a participant to the cluster
participant | participant configuration |
---|
Add multiple participants to the cluster
participants | participant configurations |
---|
Add a resource to the cluster
resource | resource configuration |
---|
Add multiple resources to the cluster
resources | resource configurations |
---|
Add a statistic specification to the cluster. Existing specifications will not be overwritten
stat | String specifying the stat specification |
---|
Add a state model definition to the cluster
stateModelDef | state model definition of the cluster |
---|
Add multiple state model definitions
stateModelDefs | collection of state model definitions for the cluster |
---|
Add a state upper bound constraint
scope | scope under which the constraint is valid |
---|---|
stateModelDefId | identifier of the state model that owns the state |
state | the state to constrain |
dynamicUpperBound | the upper bound of replicas per partition in the state, can be a
number, or the currently supported special bound values: "R" - Refers to the number of replicas specified during resource creation. This allows having different replication factor for each resource without having to create a different state machine. "N" - Refers to all nodes in the cluster. Useful for resources that need to exist on all nodes. This way one can add/remove nodes without having the change the bounds. |
Add a state upper bound constraint
scope | scope under which the constraint is valid |
---|---|
stateModelDefId | identifier of the state model that owns the state |
state | the state to constrain |
upperBound | maximum number of replicas per partition in the state |
Add statistic specifications to the cluster. Existing specifications will not be overwritten
stats | PersistentStats specifying the stat specification |
---|
Add a constraint on the maximum number of in-flight transitions of a certain type
scope | scope of the constraint |
---|---|
stateModelDefId | identifies the state model containing the transition |
transition | the transition to constrain |
maxInFlightTransitions | number of allowed in-flight transitions in the scope |
Allow or disallow participants from automatically being able to join the cluster
autoJoin | true if allowed, false if disallowed |
---|
Set the paused status of the cluster
isPaused | true if paused, false otherwise |
---|
Set the user configuration
userConfig | user-specified properties |
---|