Class RestartBackoffTimeStrategyFactoryLoader
- java.lang.Object
-
- org.apache.flink.runtime.executiongraph.failover.RestartBackoffTimeStrategyFactoryLoader
-
public final class RestartBackoffTimeStrategyFactoryLoader extends Object
A utility class to loadRestartBackoffTimeStrategy.Factory
from the configuration.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RestartBackoffTimeStrategy.Factory
createRestartBackoffTimeStrategyFactory(Configuration jobConfiguration, Configuration clusterConfiguration, boolean isCheckpointingEnabled)
CreatesRestartBackoffTimeStrategy.Factory
from the given configuration.
-
-
-
Method Detail
-
createRestartBackoffTimeStrategyFactory
public static RestartBackoffTimeStrategy.Factory createRestartBackoffTimeStrategyFactory(Configuration jobConfiguration, Configuration clusterConfiguration, boolean isCheckpointingEnabled)
CreatesRestartBackoffTimeStrategy.Factory
from the given configuration.The strategy factory is decided in order as follows:
- Strategy set in the job-level config
- Strategy set in the cluster(server-side) config (config.yaml), unless the strategy is not specified
FixedDelayRestartBackoffTimeStrategy.FixedDelayRestartBackoffTimeStrategyFactory
if checkpointing is enabled. OtherwiseNoRestartBackoffTimeStrategy.NoRestartBackoffTimeStrategyFactory
- Parameters:
jobConfiguration
- job configurationclusterConfiguration
- cluster(server-side) configurationisCheckpointingEnabled
- if checkpointing is enabled for the job- Returns:
- new version restart strategy factory
-
-