public class RestartAllStrategy extends FailoverStrategy
ExecutionGraph.failGlobal(Throwable).| Modifier and Type | Class and Description |
|---|---|
static class |
RestartAllStrategy.Factory
Factory that instantiates the RestartAllStrategy.
|
| Constructor and Description |
|---|
RestartAllStrategy(ExecutionGraph executionGraph)
Creates a new failover strategy that recovers from failures by restarting all tasks
of the execution graph.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getStrategyName()
Gets the name of the failover strategy, for logging purposes.
|
void |
notifyNewVertices(List<ExecutionJobVertex> newJobVerticesTopological)
Called whenever new vertices are added to the ExecutionGraph.
|
void |
onTaskFailure(Execution taskExecution,
Throwable cause)
Called by the execution graph when a task failure occurs.
|
registerMetricspublic RestartAllStrategy(ExecutionGraph executionGraph)
executionGraph - The execution graph to handle.public void onTaskFailure(Execution taskExecution, Throwable cause)
FailoverStrategyonTaskFailure in class FailoverStrategytaskExecution - The execution attempt of the failed task.cause - The exception that caused the task failure.public void notifyNewVertices(List<ExecutionJobVertex> newJobVerticesTopological)
FailoverStrategynotifyNewVertices in class FailoverStrategynewJobVerticesTopological - The newly added vertices, in topological order.public String getStrategyName()
FailoverStrategygetStrategyName in class FailoverStrategyCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.