Package org.apache.flink.client.cli
Class ExecutionConfigAccessor
- java.lang.Object
-
- org.apache.flink.client.cli.ExecutionConfigAccessor
-
@Internal public class ExecutionConfigAccessor extends Object
Accessor that exposes config settings that are relevant for execution from an underlyingConfiguration.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.configuration.ConfigurationapplyToConfiguration(org.apache.flink.configuration.Configuration baseConfiguration)static ExecutionConfigAccessorfromConfiguration(org.apache.flink.configuration.Configuration configuration)Creates anExecutionConfigAccessorbased on the providedConfiguration.static <T> ExecutionConfigAccessorfromProgramOptions(ProgramOptions options, List<T> jobJars)Creates anExecutionConfigAccessorbased on the providedProgramOptionsas provided by the user through the CLI.List<URL>getClasspaths()booleangetDetachedMode()List<URL>getJars()intgetParallelism()org.apache.flink.runtime.jobgraph.SavepointRestoreSettingsgetSavepointRestoreSettings()booleanisShutdownOnAttachedExit()
-
-
-
Method Detail
-
fromConfiguration
public static ExecutionConfigAccessor fromConfiguration(org.apache.flink.configuration.Configuration configuration)
Creates anExecutionConfigAccessorbased on the providedConfiguration.
-
fromProgramOptions
public static <T> ExecutionConfigAccessor fromProgramOptions(ProgramOptions options, List<T> jobJars)
Creates anExecutionConfigAccessorbased on the providedProgramOptionsas provided by the user through the CLI.
-
applyToConfiguration
public org.apache.flink.configuration.Configuration applyToConfiguration(org.apache.flink.configuration.Configuration baseConfiguration)
-
getJars
public List<URL> getJars() throws MalformedURLException
- Throws:
MalformedURLException
-
getClasspaths
public List<URL> getClasspaths() throws MalformedURLException
- Throws:
MalformedURLException
-
getParallelism
public int getParallelism()
-
getDetachedMode
public boolean getDetachedMode()
-
getSavepointRestoreSettings
public org.apache.flink.runtime.jobgraph.SavepointRestoreSettings getSavepointRestoreSettings()
-
isShutdownOnAttachedExit
public boolean isShutdownOnAttachedExit()
-
-