Class RestartAllFailoverStrategy
java.lang.Object
org.apache.flink.runtime.executiongraph.failover.RestartAllFailoverStrategy
- All Implemented Interfaces:
FailoverStrategy
A failover strategy that proposes to restart all vertices when a vertex fails.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe factory to instantiateRestartAllFailoverStrategy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTasksNeedingRestart(ExecutionVertexID executionVertexId, Throwable cause) Returns all vertices on any task failure.
-
Constructor Details
-
RestartAllFailoverStrategy
-
-
Method Details
-
getTasksNeedingRestart
public Set<ExecutionVertexID> getTasksNeedingRestart(ExecutionVertexID executionVertexId, Throwable cause) Returns all vertices on any task failure.- Specified by:
getTasksNeedingRestartin interfaceFailoverStrategy- Parameters:
executionVertexId- ID of the failed taskcause- cause of the failure- Returns:
- set of IDs of vertices to restart
-