Uses of Class
org.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraint
Packages that use PlacementConstraint.AbstractConstraint
Package
Description
API related to resources.
Package org.apache.hadoop.yarn.util.constraint contains classes
which is used as utility class for placement constraints.
-
Uses of PlacementConstraint.AbstractConstraint in org.apache.hadoop.yarn.api.resource
Modifier and TypeClassDescriptionstatic classClass that represents a composite constraint that is a conjunction of other constraints.static classClass that represents a cardinality constraint.static classClass that represents composite constraints, which comprise other constraints, forming a constraint tree.static classClass that represents a composite constraint that comprises a list of timed placement constraints (seePlacementConstraint.TimedPlacementConstraint).static classClass that represents a composite constraint that is a disjunction of other constraints.static classConsider a set of nodes N that belongs to the scope specified in the constraint.static classClass that represents a target constraint.Methods in org.apache.hadoop.yarn.api.resource that return PlacementConstraint.AbstractConstraintModifier and TypeMethodDescriptionPlacementConstraints.cardinality(String scope, int minCardinality, int maxCardinality, String... allocationTags) Creates a constraint that restricts the number of allocations within a given scope (e.g., node or rack).PlacementConstraints.cardinality(String scope, String namespace, int minCardinality, int maxCardinality, String... allocationTags) Similar toPlacementConstraints.cardinality(String, int, int, String...), but let you attach a namespace to the given allocation tags.PlacementConstraint.TimedPlacementConstraint.getConstraint()Get the constraint that has to be satisfied within the time window.PlacementConstraint.getConstraintExpr()Get the constraint expression of the placement constraint.PlacementConstraints.maxCardinality(String scope, int maxCardinality, String... allocationTags) Similar toPlacementConstraints.cardinality(String, int, int, String...), but determines only the maximum cardinality (the minimum cardinality is 0).PlacementConstraints.maxCardinality(String scope, String tagNamespace, int maxCardinality, String... allocationTags) Similar toPlacementConstraints.maxCardinality(String, int, String...), but let you specify a namespace for the tags, see supported namespaces inAllocationTagNamespaceType.PlacementConstraints.minCardinality(String scope, int minCardinality, String... allocationTags) Similar toPlacementConstraints.cardinality(String, int, int, String...), but determines only the minimum cardinality (the maximum cardinality is unbound).PlacementConstraints.minCardinality(String scope, String namespace, int minCardinality, String... allocationTags) Similar toPlacementConstraints.minCardinality(String, int, String...), but let you attach a namespace to the allocation tags.PlacementConstraints.targetCardinality(String scope, int minCardinality, int maxCardinality, PlacementConstraint.TargetExpression... targetExpressions) This constraint generalizes the cardinality and target constraints.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).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.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.Methods in org.apache.hadoop.yarn.api.resource that return types with arguments of type PlacementConstraint.AbstractConstraintModifier and TypeMethodDescriptionPlacementConstraint.And.getChildren()PlacementConstraint.Or.getChildren()Methods in org.apache.hadoop.yarn.api.resource with parameters of type PlacementConstraint.AbstractConstraintModifier and TypeMethodDescriptionstatic PlacementConstraint.AndPlacementConstraints.and(PlacementConstraint.AbstractConstraint... children) A conjunction of constraints.static PlacementConstraintPlacementConstraints.build(PlacementConstraint.AbstractConstraint constraintExpr) Creates aPlacementConstraintgiven a constraint expression.static PlacementConstraint.OrPlacementConstraints.or(PlacementConstraint.AbstractConstraint... children) A disjunction of constraints.voidPlacementConstraint.TimedPlacementConstraint.setConstraint(PlacementConstraint.AbstractConstraint constraint) Sets the constraint that has to be satisfied within the time window.PlacementConstraints.timedClockConstraint(PlacementConstraint.AbstractConstraint constraint, long delay, TimeUnit timeUnit) Creates a placement constraint that has to be satisfied within a time window.PlacementConstraints.timedOpportunitiesConstraint(PlacementConstraint.AbstractConstraint constraint, long delay) Creates a placement constraint that has to be satisfied within a number of placement opportunities (invocations of the scheduler).Constructors in org.apache.hadoop.yarn.api.resource with parameters of type PlacementConstraint.AbstractConstraintModifierConstructorDescriptionAnd(PlacementConstraint.AbstractConstraint... children) Or(PlacementConstraint.AbstractConstraint... children) PlacementConstraint(PlacementConstraint.AbstractConstraint constraintExpr) TimedPlacementConstraint(PlacementConstraint.AbstractConstraint constraint, long schedulingDelay) TimedPlacementConstraint(PlacementConstraint.AbstractConstraint constraint, long schedulingDelay, PlacementConstraint.TimedPlacementConstraint.DelayUnit delayUnit) Constructor parameters in org.apache.hadoop.yarn.api.resource with type arguments of type PlacementConstraint.AbstractConstraintModifierConstructorDescriptionAnd(List<PlacementConstraint.AbstractConstraint> children) Or(List<PlacementConstraint.AbstractConstraint> children) -
Uses of PlacementConstraint.AbstractConstraint in org.apache.hadoop.yarn.util.constraint
Methods in org.apache.hadoop.yarn.util.constraint that return PlacementConstraint.AbstractConstraintModifier and TypeMethodDescriptionPlacementConstraintParser.CardinalityConstraintParser.parse()PlacementConstraintParser.ConjunctionConstraintParser.parse()PlacementConstraintParser.ConstraintParser.parse()PlacementConstraintParser.NodeConstraintParser.parse()PlacementConstraintParser.TargetConstraintParser.parse()PlacementConstraintParser.parseExpression(String constraintStr) Parses a given constraint expression to aPlacementConstraint.AbstractConstraint, this expression can be any valid form of constraint expressions.PlacementConstraintParser.ConstraintParser.tryParse()