public class FailureRateRestartStrategy extends Object implements RestartStrategy
ExecutionGraph
when failure rate
exceeded with a fixed time delay in between.限定符和类型 | 类和说明 |
---|---|
static class |
FailureRateRestartStrategy.FailureRateRestartStrategyFactory |
构造器和说明 |
---|
FailureRateRestartStrategy(int maxFailuresPerInterval,
org.apache.flink.api.common.time.Time failuresInterval,
org.apache.flink.api.common.time.Time delayInterval) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
canRestart()
True if the restart strategy can be applied to restart the
ExecutionGraph . |
static FailureRateRestartStrategy.FailureRateRestartStrategyFactory |
createFactory(org.apache.flink.configuration.Configuration configuration) |
CompletableFuture<Void> |
restart(RestartCallback restarter,
ScheduledExecutor executor)
Called by the ExecutionGraph to eventually trigger a full recovery.
|
String |
toString() |
public FailureRateRestartStrategy(int maxFailuresPerInterval, org.apache.flink.api.common.time.Time failuresInterval, org.apache.flink.api.common.time.Time delayInterval)
public boolean canRestart()
RestartStrategy
ExecutionGraph
.canRestart
在接口中 RestartStrategy
public CompletableFuture<Void> restart(RestartCallback restarter, ScheduledExecutor executor)
RestartStrategy
The thread that calls this method is not supposed to block/sleep.
restart
在接口中 RestartStrategy
restarter
- 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 FailureRateRestartStrategy.FailureRateRestartStrategyFactory createFactory(org.apache.flink.configuration.Configuration configuration) throws Exception
Exception
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.