public class NoRestartStrategy extends Object implements RestartStrategy
ExecutionGraph.| Modifier and Type | Class and Description |
|---|---|
static class |
NoRestartStrategy.NoRestartStrategyFactory |
| Constructor and Description |
|---|
NoRestartStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRestart()
True if the restart strategy can be applied to restart the
ExecutionGraph. |
static NoRestartStrategy.NoRestartStrategyFactory |
createFactory(org.apache.flink.configuration.Configuration configuration)
Creates a NoRestartStrategyFactory instance.
|
CompletableFuture<Void> |
restart(RestartCallback restarter,
ScheduledExecutor executor)
Called by the ExecutionGraph to eventually trigger a full recovery.
|
String |
toString() |
public boolean canRestart()
RestartStrategyExecutionGraph.canRestart in interface RestartStrategypublic CompletableFuture<Void> restart(RestartCallback restarter, ScheduledExecutor executor)
RestartStrategyThe thread that calls this method is not supposed to block/sleep.
restart in interface RestartStrategyrestarter - The hook to restart the ExecutionGraphexecutor - An scheduled executor to delay the restartCompletableFuture that will be completed when the restarting process is done.public static NoRestartStrategy.NoRestartStrategyFactory createFactory(org.apache.flink.configuration.Configuration configuration)
configuration - Configuration object which is ignoredCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.