public class FixedDelayRestartStrategy extends Object implements RestartStrategy
ExecutionGraph
a fixed number of times
with a fixed time delay in between.限定符和类型 | 类和说明 |
---|---|
static class |
FixedDelayRestartStrategy.FixedDelayRestartStrategyFactory |
构造器和说明 |
---|
FixedDelayRestartStrategy(int maxNumberRestartAttempts,
long delayBetweenRestartAttempts) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
canRestart()
True if the restart strategy can be applied to restart the
ExecutionGraph . |
static FixedDelayRestartStrategy.FixedDelayRestartStrategyFactory |
createFactory(org.apache.flink.configuration.Configuration configuration)
Creates a FixedDelayRestartStrategy from the given Configuration.
|
int |
getCurrentRestartAttempt() |
void |
restart(RestartCallback restarter,
ScheduledExecutor executor)
Called by the ExecutionGraph to eventually trigger a full recovery.
|
String |
toString() |
public FixedDelayRestartStrategy(int maxNumberRestartAttempts, long delayBetweenRestartAttempts)
public int getCurrentRestartAttempt()
public boolean canRestart()
RestartStrategy
ExecutionGraph
.canRestart
在接口中 RestartStrategy
public 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 restartpublic static FixedDelayRestartStrategy.FixedDelayRestartStrategyFactory createFactory(org.apache.flink.configuration.Configuration configuration) throws Exception
configuration
- Configuration containing the parameter values for the restart strategyException
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.