Package | Description |
---|---|
org.apache.hadoop.yarn.api.resource |
API related to resources.
|
Modifier and Type | Method and Description |
---|---|
static PlacementConstraint.TargetExpression |
PlacementConstraints.PlacementTargets.allocationTag(String... allocationTags)
Constructs a target expression on an allocation tag.
|
static PlacementConstraint.TargetExpression |
PlacementConstraints.PlacementTargets.allocationTagWithNamespace(String namespace,
String... allocationTags)
Constructs a target expression on a set of allocation tags under
a certain namespace.
|
static PlacementConstraint.TargetExpression |
PlacementConstraints.PlacementTargets.nodeAttribute(String attributeKey,
String... attributeValues)
Constructs a target expression on a node attribute.
|
static PlacementConstraint.TargetExpression |
PlacementConstraints.PlacementTargets.nodePartition(String... nodePartitions)
Constructs a target expression on a node partition.
|
Modifier and Type | Method and Description |
---|---|
Set<PlacementConstraint.TargetExpression> |
PlacementConstraint.SingleConstraint.getTargetExpressions()
Get the target expressions of the constraint.
|
Set<PlacementConstraint.TargetExpression> |
PlacementConstraint.TargetConstraint.getTargetExpressions()
Get the set of target expressions.
|
Modifier and Type | Method and Description |
---|---|
static PlacementConstraint.AbstractConstraint |
PlacementConstraints.targetCardinality(String scope,
int minCardinality,
int maxCardinality,
PlacementConstraint.TargetExpression... targetExpressions)
This constraint generalizes the cardinality and target constraints.
|
static PlacementConstraint.AbstractConstraint |
PlacementConstraints.targetIn(String scope,
PlacementConstraint.TargetExpression... targetExpressions)
Creates a constraint that requires allocations to be placed on nodes that
satisfy all target expressions within the given scope (e.g., node or rack).
|
static PlacementConstraint.AbstractConstraint |
PlacementConstraints.targetNodeAttribute(String scope,
NodeAttributeOpCode opCode,
PlacementConstraint.TargetExpression... targetExpressions)
Creates a constraint that requires allocations to be placed on nodes that
belong to a scope (e.g., node or rack) that satisfy any of the
target expressions based on node attribute op code.
|
static PlacementConstraint.AbstractConstraint |
PlacementConstraints.targetNotIn(String scope,
PlacementConstraint.TargetExpression... targetExpressions)
Creates a constraint that requires allocations to be placed on nodes that
belong to a scope (e.g., node or rack) that does not satisfy any of the
target expressions.
|
T |
PlacementConstraint.Visitor.visit(PlacementConstraint.TargetExpression target) |
Constructor and Description |
---|
SingleConstraint(String scope,
int minC,
int maxC,
NodeAttributeOpCode opCode,
PlacementConstraint.TargetExpression... targetExpressions) |
SingleConstraint(String scope,
int minC,
int maxC,
PlacementConstraint.TargetExpression... targetExpressions) |
Constructor and Description |
---|
SingleConstraint(String scope,
int minCardinality,
int maxCardinality,
NodeAttributeOpCode opCode,
Set<PlacementConstraint.TargetExpression> targetExpressions) |
SingleConstraint(String scope,
int minCardinality,
int maxCardinality,
Set<PlacementConstraint.TargetExpression> targetExpressions) |
TargetConstraint(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator op,
String scope,
Set<PlacementConstraint.TargetExpression> targetExpressions) |
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.