public class FixedDelayRestartStrategy extends Object implements RestartStrategy
ExecutionGraph a fixed number of times
with a fixed time delay in between.| Constructor and Description |
|---|
FixedDelayRestartStrategy(int maxNumberRestartAttempts,
long delayBetweenRestartAttempts) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRestart()
True if the restart strategy can be applied to restart the
ExecutionGraph. |
static FixedDelayRestartStrategy |
create(org.apache.flink.configuration.Configuration configuration)
Creates a FixedDelayRestartStrategy from the given Configuration.
|
int |
getCurrentRestartAttempt() |
void |
restart(ExecutionGraph executionGraph)
Restarts the given
ExecutionGraph. |
String |
toString() |
public FixedDelayRestartStrategy(int maxNumberRestartAttempts,
long delayBetweenRestartAttempts)
public int getCurrentRestartAttempt()
public boolean canRestart()
RestartStrategyExecutionGraph.canRestart in interface RestartStrategypublic void restart(ExecutionGraph executionGraph)
RestartStrategyExecutionGraph.restart in interface RestartStrategyexecutionGraph - The ExecutionGraph to be restartedpublic static FixedDelayRestartStrategy create(org.apache.flink.configuration.Configuration configuration) throws Exception
configuration - Configuration containing the parameter values for the restart strategyExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.