public class FailureRateRestartStrategy extends Object implements RestartStrategy
ExecutionGraph when failure rate exceeded
with a fixed time delay in between.| Modifier and Type | Class and Description |
|---|---|
static class |
FailureRateRestartStrategy.FailureRateRestartStrategyFactory |
| Constructor and Description |
|---|
FailureRateRestartStrategy(int maxFailuresPerInterval,
org.apache.flink.api.common.time.Time failuresInterval,
org.apache.flink.api.common.time.Time delayInterval) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRestart()
True if the restart strategy can be applied to restart the
ExecutionGraph. |
static FailureRateRestartStrategy.FailureRateRestartStrategyFactory |
createFactory(org.apache.flink.configuration.Configuration configuration) |
void |
restart(ExecutionGraph executionGraph)
Restarts the given
ExecutionGraph. |
public FailureRateRestartStrategy(int maxFailuresPerInterval,
org.apache.flink.api.common.time.Time failuresInterval,
org.apache.flink.api.common.time.Time delayInterval)
public boolean canRestart()
RestartStrategyExecutionGraph.canRestart in interface RestartStrategypublic void restart(ExecutionGraph executionGraph)
RestartStrategyExecutionGraph.restart in interface RestartStrategyexecutionGraph - The ExecutionGraph to be restartedpublic static FailureRateRestartStrategy.FailureRateRestartStrategyFactory createFactory(org.apache.flink.configuration.Configuration configuration) throws Exception
ExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.