public static class PlacementConstraints.PlacementTargets extends Object
| Constructor and Description | 
|---|
| PlacementTargets() | 
| Modifier and Type | Method and Description | 
|---|---|
| static PlacementConstraint.TargetExpression | allocationTag(String... allocationTags)Constructs a target expression on an allocation tag. | 
| static PlacementConstraint.TargetExpression | allocationTagWithNamespace(String namespace,
                          String... allocationTags)Constructs a target expression on a set of allocation tags under
 a certain namespace. | 
| static PlacementConstraint.TargetExpression | nodeAttribute(String attributeKey,
             String... attributeValues)Constructs a target expression on a node attribute. | 
| static PlacementConstraint.TargetExpression | nodePartition(String... nodePartitions)Constructs a target expression on a node partition. | 
public static PlacementConstraint.TargetExpression nodeAttribute(String attributeKey, String... attributeValues)
attributeKey - the name of the node attributeattributeValues - the set of values that the attribute should take
          values frompublic static PlacementConstraint.TargetExpression nodePartition(String... nodePartitions)
nodePartitions - the set of values that the attribute should take
          values frompublic static PlacementConstraint.TargetExpression allocationTag(String... allocationTags)
AllocationTagNamespaceType.SELF, this only
 checks tags within the application.allocationTags - the set of tags that the attribute should take
          values frompublic static PlacementConstraint.TargetExpression allocationTagWithNamespace(String namespace, String... allocationTags)
namespace - namespace of the allocation tagsallocationTags - allocation tagsCopyright © 2008–2024 Apache Software Foundation. All rights reserved.