Class StageExecutionIntervalUnconstrained
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.StageExecutionIntervalUnconstrained
- All Implemented Interfaces:
StageExecutionInterval
An implementation of
StageExecutionInterval which gives each stage
the maximal possible time interval, given the job constraints. Specifically,
for ANY and ALL jobs, the interval would be [jobArrival, jobDeadline). For
ORDER jobs, the stage cannot start before its predecessors (if allocateLeft
== true) or cannot end before its successors (if allocateLeft == false)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeExecutionInterval(Plan plan, org.apache.hadoop.yarn.api.records.ReservationDefinition reservation, org.apache.hadoop.yarn.api.records.ReservationRequest currentReservationStage, boolean allocateLeft, RLESparseResourceAllocation allocations) Computes the earliest allowed starting time for a given stage.
-
Constructor Details
-
StageExecutionIntervalUnconstrained
public StageExecutionIntervalUnconstrained()
-
-
Method Details
-
computeExecutionInterval
public ReservationInterval computeExecutionInterval(Plan plan, org.apache.hadoop.yarn.api.records.ReservationDefinition reservation, org.apache.hadoop.yarn.api.records.ReservationRequest currentReservationStage, boolean allocateLeft, RLESparseResourceAllocation allocations) Description copied from interface:StageExecutionIntervalComputes the earliest allowed starting time for a given stage.- Specified by:
computeExecutionIntervalin interfaceStageExecutionInterval- Parameters:
plan- the Plan to which the reservation must be fittedreservation- the job contractcurrentReservationStage- the stageallocateLeft- is the job allocated from left to rightallocations- Existing resource assignments for the job- Returns:
- the time interval in which the stage can get resources.
-