public class LazyFromSourcesSchedulingStrategy extends Object implements SchedulingStrategy
SchedulingStrategy instance for batch job which schedule vertices when input data are ready.| Modifier and Type | Class and Description |
|---|---|
static class |
LazyFromSourcesSchedulingStrategy.Factory
The factory for creating
LazyFromSourcesSchedulingStrategy. |
| Constructor and Description |
|---|
LazyFromSourcesSchedulingStrategy(SchedulerOperations schedulerOperations,
SchedulingTopology<?,?> schedulingTopology) |
| Modifier and Type | Method and Description |
|---|---|
void |
onExecutionStateChange(ExecutionVertexID executionVertexId,
ExecutionState executionState)
Called whenever an
Execution changes its state. |
void |
onPartitionConsumable(ExecutionVertexID executionVertexId,
ResultPartitionID 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 LazyFromSourcesSchedulingStrategy(SchedulerOperations schedulerOperations, SchedulingTopology<?,?> schedulingTopology)
public void startScheduling()
SchedulingStrategystartScheduling in interface SchedulingStrategypublic void restartTasks(Set<ExecutionVertexID> verticesToRestart)
SchedulingStrategyrestartTasks in interface SchedulingStrategyverticesToRestart - The tasks need to be restartedpublic void onExecutionStateChange(ExecutionVertexID executionVertexId, ExecutionState executionState)
SchedulingStrategyExecution changes its state.onExecutionStateChange in interface SchedulingStrategyexecutionVertexId - The id of the taskexecutionState - The new state of the executionpublic void onPartitionConsumable(ExecutionVertexID executionVertexId, ResultPartitionID resultPartitionId)
SchedulingStrategyIntermediateResultPartition becomes consumable.onPartitionConsumable in interface SchedulingStrategyexecutionVertexId - The id of the producerresultPartitionId - The id of the result partitionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.