public interface SchedulingStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
onExecutionStateChange(ExecutionVertexID executionVertexId,
ExecutionState executionState)
Called whenever an
Execution changes its state. |
void |
onPartitionConsumable(IntermediateResultPartitionID resultPartitionId)
Called whenever an
IntermediateResultPartition becomes consumable. |
void |
restartTasks(Set<ExecutionVertexID> verticesToRestart)
Called whenever vertices need to be restarted (due to task failure).
|
void |
startScheduling()
Called when the scheduling is started (initial scheduling operation).
|
void startScheduling()
void restartTasks(Set<ExecutionVertexID> verticesToRestart)
verticesToRestart - The tasks need to be restartedvoid onExecutionStateChange(ExecutionVertexID executionVertexId, ExecutionState executionState)
Execution changes its state.executionVertexId - The id of the taskexecutionState - The new state of the executionvoid onPartitionConsumable(IntermediateResultPartitionID resultPartitionId)
IntermediateResultPartition becomes consumable.resultPartitionId - The id of the result partitionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.