Interface StageExecutionInterval
- All Known Implementing Classes:
StageExecutionIntervalByDemand,StageExecutionIntervalUnconstrained
public interface StageExecutionInterval
An auxiliary class used to compute the time interval in which the stage can
be allocated resources by
IterativePlanner.-
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.
-
Method Details
-
computeExecutionInterval
ReservationInterval computeExecutionInterval(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.- 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.
-