public static class

ClusterConfig.Delta

extends Object
java.lang.Object
   ↳ org.apache.helix.api.config.ClusterConfig.Delta

Class Overview

Update context for a ClusterConfig

Summary

Public Constructors
ClusterConfig.Delta(ClusterId clusterId)
Instantiate the delta for a cluster config
Public Methods
ClusterConfig.Delta addConstraintItem(ClusterConstraints.ConstraintType type, ConstraintId constraintId, ConstraintItem item)
Add a single constraint item
ClusterConfig.Delta addTransitionConstraint(Scope<?> scope, StateModelDefId stateModelDefId, Transition transition, int maxInFlightTransitions)
Add a constraint on the maximum number of in-flight transitions of a certain type
ClusterConfig.Delta addUserConfig(UserConfig userConfig)
void merge(HelixDataAccessor accessor)
Merge in this delta with a physical accessor
ClusterConfig.Delta removeConstraintItem(ClusterConstraints.ConstraintType type, ConstraintId constraintId)
Remove a single constraint item
ClusterConfig.Delta removeTransitionConstraint(Scope<?> scope, StateModelDefId stateModelDefId, Transition transition)
Remove a constraint on the maximum number of in-flight transitions of a certain type
ClusterConfig.Delta setAutoJoin(boolean autoJoin)
Allow or disallow participants from automatically being able to join the cluster
ClusterConfig.Delta setPaused(boolean isPaused)
Change the paused status of the cluster controller
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ClusterConfig.Delta (ClusterId clusterId)

Instantiate the delta for a cluster config

Parameters
clusterId the cluster to update

Public Methods

public ClusterConfig.Delta addConstraintItem (ClusterConstraints.ConstraintType type, ConstraintId constraintId, ConstraintItem item)

Add a single constraint item

Parameters
type type of the constraint item
constraintId unique constraint id
item instantiated ConstraintItem
Returns
  • Delta

public ClusterConfig.Delta addTransitionConstraint (Scope<?> scope, StateModelDefId stateModelDefId, Transition transition, int maxInFlightTransitions)

Add a constraint on the maximum number of in-flight transitions of a certain type

Parameters
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
Returns
  • Delta

public ClusterConfig.Delta addUserConfig (UserConfig userConfig)

public void merge (HelixDataAccessor accessor)

Merge in this delta with a physical accessor

Parameters
accessor the physical cluster accessor

public ClusterConfig.Delta removeConstraintItem (ClusterConstraints.ConstraintType type, ConstraintId constraintId)

Remove a single constraint item

Parameters
type type of the constraint item
constraintId unique constraint id
Returns
  • Delta

public ClusterConfig.Delta removeTransitionConstraint (Scope<?> scope, StateModelDefId stateModelDefId, Transition transition)

Remove a constraint on the maximum number of in-flight transitions of a certain type

Parameters
scope scope of the constraint
stateModelDefId identifies the state model containing the transition
transition the transition to constrain
Returns
  • Delta

public ClusterConfig.Delta setAutoJoin (boolean autoJoin)

Allow or disallow participants from automatically being able to join the cluster

Parameters
autoJoin true if allowed, false if disallowed
Returns
  • Delta

public ClusterConfig.Delta setPaused (boolean isPaused)

Change the paused status of the cluster controller

Parameters
isPaused true to pause, false to unpause
Returns
  • Delta