Class PlacementConstraint.DelayedOr
java.lang.Object
org.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraint
org.apache.hadoop.yarn.api.resource.PlacementConstraint.CompositeConstraint<PlacementConstraint.TimedPlacementConstraint>
org.apache.hadoop.yarn.api.resource.PlacementConstraint.DelayedOr
- All Implemented Interfaces:
PlacementConstraint.Visitable
- Enclosing class:
- PlacementConstraint
public static class PlacementConstraint.DelayedOr
extends PlacementConstraint.CompositeConstraint<PlacementConstraint.TimedPlacementConstraint>
Class that represents a composite constraint that comprises a list of timed
placement constraints (see
PlacementConstraint.TimedPlacementConstraint). The scheduler
should try to satisfy first the first timed child constraint within the
specified time window. If this is not possible, it should attempt to
satisfy the second, and so on.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(PlacementConstraint.Visitor<T> visitor) Visitor pattern.Get the children of this composite constraint.toString()Methods inherited from class org.apache.hadoop.yarn.api.resource.PlacementConstraint.CompositeConstraint
equals, hashCodeMethods inherited from class org.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraint
build
-
Constructor Details
-
DelayedOr
-
DelayedOr
-
-
Method Details
-
getChildren
Description copied from class:PlacementConstraint.CompositeConstraintGet the children of this composite constraint.- Specified by:
getChildrenin classPlacementConstraint.CompositeConstraint<PlacementConstraint.TimedPlacementConstraint>- Returns:
- the children of the composite constraint
-
accept
Description copied from interface:PlacementConstraint.VisitableVisitor pattern.- Type Parameters:
T- defines the type that the visitor will use and the return type of the accept.- Parameters:
visitor- visitor to be used- Returns:
- the result of visiting a given object.
-
toString
- Overrides:
toStringin classPlacementConstraint.AbstractConstraint
-