public class PipelinedRegionSchedulingStrategy extends Object implements SchedulingStrategy
SchedulingStrategy instance which schedules tasks in granularity of pipelined regions.| 限定符和类型 | 类和说明 |
|---|---|
static class |
PipelinedRegionSchedulingStrategy.Factory
The factory for creating
PipelinedRegionSchedulingStrategy. |
| 构造器和说明 |
|---|
PipelinedRegionSchedulingStrategy(SchedulerOperations schedulerOperations,
SchedulingTopology schedulingTopology) |
| 限定符和类型 | 方法和说明 |
|---|---|
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).
|
public PipelinedRegionSchedulingStrategy(SchedulerOperations schedulerOperations, SchedulingTopology schedulingTopology)
public void startScheduling()
SchedulingStrategystartScheduling 在接口中 SchedulingStrategypublic void restartTasks(Set<ExecutionVertexID> verticesToRestart)
SchedulingStrategyrestartTasks 在接口中 SchedulingStrategyverticesToRestart - The tasks need to be restartedpublic void onExecutionStateChange(ExecutionVertexID executionVertexId, ExecutionState executionState)
SchedulingStrategyExecution changes its state.onExecutionStateChange 在接口中 SchedulingStrategyexecutionVertexId - The id of the taskexecutionState - The new state of the executionpublic void onPartitionConsumable(IntermediateResultPartitionID resultPartitionId)
SchedulingStrategyIntermediateResultPartition becomes consumable.onPartitionConsumable 在接口中 SchedulingStrategyresultPartitionId - The id of the result partitionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.