public static class PlacementConstraint.SingleConstraint extends PlacementConstraint.AbstractConstraint
{RACK, 2, 10,
 allocationTag("zk")}, requires an allocation to be placed within a rack
 that has at least 2 and at most 10 other allocations with tag "zk".| Constructor and Description | 
|---|
| SingleConstraint(String scope,
                int minC,
                int maxC,
                PlacementConstraint.TargetExpression... targetExpressions) | 
| SingleConstraint(String scope,
                int minCardinality,
                int maxCardinality,
                Set<PlacementConstraint.TargetExpression> targetExpressions) | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | accept(PlacementConstraint.Visitor<T> visitor)Visitor pattern. | 
| boolean | equals(Object o) | 
| int | getMaxCardinality()Get the maximum cardinality of the constraint. | 
| int | getMinCardinality()Get the minimum cardinality of the constraint. | 
| String | getScope()Get the scope of the constraint. | 
| Set<PlacementConstraint.TargetExpression> | getTargetExpressions()Get the target expressions of the constraint. | 
| int | hashCode() | 
| String | toString() | 
buildpublic SingleConstraint(String scope, int minCardinality, int maxCardinality, Set<PlacementConstraint.TargetExpression> targetExpressions)
public SingleConstraint(String scope, int minC, int maxC, PlacementConstraint.TargetExpression... targetExpressions)
public String getScope()
public int getMinCardinality()
public int getMaxCardinality()
public Set<PlacementConstraint.TargetExpression> getTargetExpressions()
public <T> T accept(PlacementConstraint.Visitor<T> visitor)
PlacementConstraint.VisitableT - defines the type that the visitor will use and the return type
          of the accept.visitor - visitor to be usedCopyright © 2008–2018 Apache Software Foundation. All rights reserved.