Interface FailoverStrategy
-
- All Known Implementing Classes:
RestartAllFailoverStrategy,RestartPipelinedRegionFailoverStrategy
public interface FailoverStrategyNew interface for failover strategies.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFailoverStrategy.FactoryThe factory to instantiateFailoverStrategy.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<ExecutionVertexID>getTasksNeedingRestart(ExecutionVertexID executionVertexId, Throwable cause)Returns a set of IDs corresponding to the set of vertices that should be restarted.
-
-
-
Method Detail
-
getTasksNeedingRestart
Set<ExecutionVertexID> getTasksNeedingRestart(ExecutionVertexID executionVertexId, Throwable cause)
Returns a set of IDs corresponding to the set of vertices that should be restarted.- Parameters:
executionVertexId- ID of the failed taskcause- cause of the failure- Returns:
- set of IDs of vertices to restart
-
-