public static class PlacementConstraints.PlacementTargets
extends java.lang.Object
| Constructor | Description |
|---|---|
PlacementTargets() |
| Modifier and Type | Method | Description |
|---|---|---|
static PlacementConstraint.TargetExpression |
allocationTag(java.lang.String... allocationTags) |
Constructs a target expression on an allocation tag.
|
static PlacementConstraint.TargetExpression |
allocationTagWithNamespace(java.lang.String namespace,
java.lang.String... allocationTags) |
Constructs a target expression on a set of allocation tags under
a certain namespace.
|
static PlacementConstraint.TargetExpression |
nodeAttribute(java.lang.String attributeKey,
java.lang.String... attributeValues) |
Constructs a target expression on a node attribute.
|
static PlacementConstraint.TargetExpression |
nodePartition(java.lang.String... nodePartitions) |
Constructs a target expression on a node partition.
|
public static PlacementConstraint.TargetExpression nodeAttribute(java.lang.String attributeKey, java.lang.String... attributeValues)
attributeKey - the name of the node attributeattributeValues - the set of values that the attribute should take
values frompublic static PlacementConstraint.TargetExpression nodePartition(java.lang.String... nodePartitions)
nodePartitions - the set of values that the attribute should take
values frompublic static PlacementConstraint.TargetExpression allocationTag(java.lang.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(java.lang.String namespace, java.lang.String... allocationTags)
namespace - namespace of the allocation tagsallocationTags - allocation tagsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.