public class

ClusterConfig

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

Class Overview

Configuration properties of a cluster

Summary

Nested Classes
class ClusterConfig.Builder Assembles a cluster configuration  
class ClusterConfig.Delta Update context for a ClusterConfig  
Public Methods
boolean autoJoinAllowed()
Check if this cluster allows participants to join automatically
Map<ClusterConstraints.ConstraintTypeClusterConstraints> getConstraintMap()
Get all the constraints on the cluster
ClusterId getId()
Get cluster id
Map<ParticipantIdParticipantConfig> getParticipantMap()
Get participants of the cluster
Map<ResourceIdResourceConfig> getResourceMap()
Get resources in the cluster
Map<StateModelDefIdStateModelDefinition> getStateModelMap()
Get all the state model definitions on the cluster
int getTransitionConstraint(Scope<?> scope, StateModelDefId stateModelDefId, Transition transition)
Get the limit of simultaneous execution of a transition
UserConfig getUserConfig()
Get user-specified configuration properties of this cluster
boolean isPaused()
Check the paused status of the cluster
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean autoJoinAllowed ()

Check if this cluster allows participants to join automatically

Returns
  • true if allowed, false if disallowed

public Map<ClusterConstraints.ConstraintTypeClusterConstraints> getConstraintMap ()

Get all the constraints on the cluster

Returns
  • map of constraint type to constraints

public ClusterId getId ()

Get cluster id

Returns
  • cluster id

public Map<ParticipantIdParticipantConfig> getParticipantMap ()

Get participants of the cluster

Returns
  • a map of participant id to participant, or empty map if none

public Map<ResourceIdResourceConfig> getResourceMap ()

Get resources in the cluster

Returns
  • a map of resource id to resource, or empty map if none

public Map<StateModelDefIdStateModelDefinition> getStateModelMap ()

Get all the state model definitions on the cluster

Returns
  • map of state model definition id to state model definition

public int getTransitionConstraint (Scope<?> scope, StateModelDefId stateModelDefId, Transition transition)

Get the limit of simultaneous execution of a transition

Parameters
scope the scope under which the transition is constrained
stateModelDefId the state model of which the transition is a part
transition the constrained transition
Returns
  • the limit, or Integer.MAX_VALUE if there is no limit

public UserConfig getUserConfig ()

Get user-specified configuration properties of this cluster

Returns
  • UserConfig properties

public boolean isPaused ()

Check the paused status of the cluster

Returns
  • true if paused, false otherwise