Interface SchedulingStrategy
-
- All Known Implementing Classes:
PipelinedRegionSchedulingStrategy,VertexwiseSchedulingStrategy
public interface SchedulingStrategyComponent which encapsulates the scheduling logic. It can react to execution state changes and partition consumable events. Moreover, it is responsible for resolving task failures.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonExecutionStateChange(ExecutionVertexID executionVertexId, ExecutionState executionState)Called whenever anExecutionchanges its state.voidonPartitionConsumable(IntermediateResultPartitionID resultPartitionId)Called whenever anIntermediateResultPartitionbecomes consumable.voidrestartTasks(Set<ExecutionVertexID> verticesToRestart)Called whenever vertices need to be restarted (due to task failure).voidstartScheduling()Called when the scheduling is started (initial scheduling operation).
-
-
-
Method Detail
-
startScheduling
void startScheduling()
Called when the scheduling is started (initial scheduling operation).
-
restartTasks
void restartTasks(Set<ExecutionVertexID> verticesToRestart)
Called whenever vertices need to be restarted (due to task failure).- Parameters:
verticesToRestart- The tasks need to be restarted
-
onExecutionStateChange
void onExecutionStateChange(ExecutionVertexID executionVertexId, ExecutionState executionState)
Called whenever anExecutionchanges its state.- Parameters:
executionVertexId- The id of the taskexecutionState- The new state of the execution
-
onPartitionConsumable
void onPartitionConsumable(IntermediateResultPartitionID resultPartitionId)
Called whenever anIntermediateResultPartitionbecomes consumable.- Parameters:
resultPartitionId- The id of the result partition
-
-