| java.lang.Object | ||
| ↳ | org.apache.helix.HelixProperty | |
| ↳ | org.apache.helix.model.ClusterConstraints | |
All of the constraints on a given cluster and its subcomponents, both physical and logical.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ClusterConstraints.ConstraintAttribute | Attributes on which constraints operate | ||||||||||
| ClusterConstraints.ConstraintType | What is being constrained | ||||||||||
| ClusterConstraints.ConstraintValue | Possible special values that constraint attributes can take | ||||||||||
| 
  [Expand]
   Inherited Fields  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   From class
org.apache.helix.HelixProperty
 | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate constraints as a given type 
  
   | |||||||||||
Instantiate constraints from a pre-populated ZNRecord 
  
   | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
add the constraint, overwrite existing one if constraint with same constraint-id already exists 
  
   | |||||||||||
add the constraint, overwrite existing one if constraint with same constraint-id already exists 
  
   | |||||||||||
Add multiple constraint items. 
  
   | |||||||||||
get a constraint-item 
  
   | |||||||||||
get a constraint-item 
  
   | |||||||||||
Get all constraint items in this collection of constraints 
  
   | |||||||||||
Get the type of constraint this object represents 
  
   | |||||||||||
Get property validity 
  
   | |||||||||||
return a set of constraints that match the attribute pairs 
  
   | |||||||||||
remove a constraint-item 
  
   | |||||||||||
remove a constraint-item 
  
   | |||||||||||
convert a message to constraint attribute pairs 
  
   | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  org.apache.helix.HelixProperty
 | |||||||||||
   
From class
  java.lang.Object
 | |||||||||||
Instantiate constraints as a given type
| type | ClusterConstraints.ConstraintType representing what this constrains
 | 
        
|---|
Instantiate constraints from a pre-populated ZNRecord
| record | ZNRecord containing all constraints | 
|---|
add the constraint, overwrite existing one if constraint with same constraint-id already exists
| constraintId | unique constraint identifier | 
|---|---|
| item | the constraint as a ConstraintItem
 | 
        
add the constraint, overwrite existing one if constraint with same constraint-id already exists
| constraintId | unique constraint identifier | 
|---|---|
| item | the constraint as a ConstraintItem
 | 
        
Add multiple constraint items.
| items | (constraint identifier, ConstrantItem) pairs | 
|---|
get a constraint-item
| constraintId | unique constraint identifier | 
|---|
ConstraintItem or null if not present
get a constraint-item
| constraintId | unique constraint identifier | 
|---|
ConstraintItem or null if not present
Get all constraint items in this collection of constraints
Get the type of constraint this object represents
Get property validity
return a set of constraints that match the attribute pairs
| attributes | (constraint scope, constraint string) pairs | 
|---|
ConstraintItems with matching attributes
remove a constraint-item
| constraintId | unique constraint identifier | 
|---|
remove a constraint-item
| constraintId | unique constraint identifier | 
|---|
convert a message to constraint attribute pairs
| msg | a Message containing constraint attributes | 
        
|---|