public class

ConstraintId

extends Id
java.lang.Object
   ↳ org.apache.helix.api.id.Id
     ↳ org.apache.helix.api.id.ConstraintId

Class Overview

Identifies a constraint item on the cluster

Summary

Public Constructors
ConstraintId(String id)
Create a constraint id
Public Methods
static ConstraintId from(Scope<?> scope, StateModelDefId stateModelDefId, State state)
Get a state constraint id based on the state model definition and state
static ConstraintId from(Scope<?> scope, StateModelDefId stateModelDefId, Transition transition)
Get a state constraint id based on the state model definition and transition
static ConstraintId from(String constraintId)
Get a constraint id from a string
String stringify()
[Expand]
Inherited Methods
From class org.apache.helix.api.id.Id
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public ConstraintId (String id)

Create a constraint id

Public Methods

public static ConstraintId from (Scope<?> scope, StateModelDefId stateModelDefId, State state)

Get a state constraint id based on the state model definition and state

Parameters
scope the scope of the constraint
stateModelDefId the state model
state the constrained state
Returns
  • ConstraintId

public static ConstraintId from (Scope<?> scope, StateModelDefId stateModelDefId, Transition transition)

Get a state constraint id based on the state model definition and transition

Parameters
scope the scope of the constraint
stateModelDefId the state model
transition the constrained transition
Returns
  • ConstraintId

public static ConstraintId from (String constraintId)

Get a constraint id from a string

Parameters
constraintId string representing the constraint id
Returns
  • ConstraintId

public String stringify ()