java.lang.Object | |
↳ | org.apache.helix.model.ConstraintItem |
A single constraint and its associated attributes
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialize a constraint with attributes
| |||||||||||
Initialize a constraint with
ClusterConstraints.ConstraintAttribute s and a custom constraint value |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
filter out attributes that are not specified by this constraint
| |||||||||||
Get the value of a specific attribute in this cluster
| |||||||||||
Get all the attributes of the constraint
| |||||||||||
Get the actual entities that the constraint operates on
| |||||||||||
Check if this constraint follows these attributes.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Initialize a constraint with attributes
attributes | the attributes that define the constraint, including the constraint value |
---|
Initialize a constraint with ClusterConstraints.ConstraintAttribute
s and a custom constraint value
attributes | constraint attribute scope-value pairs |
---|---|
constraintValue | the specific entity(ies) affected by the constraint |
filter out attributes that are not specified by this constraint
attributes | attributes to filter |
---|
Get the value of a specific attribute in this cluster
attr | the attribute to look up |
---|
Get all the attributes of the constraint
Get the actual entities that the constraint operates on
Check if this constraint follows these attributes. Note that it is possible that this constraint could consist of attributes in addition to those that are specified.
attributes | attributes to check |
---|