Package org.apache.flink.client.cli
Class ProgramOptions
- java.lang.Object
-
- org.apache.flink.client.cli.CommandLineOptions
-
- org.apache.flink.client.cli.ProgramOptions
-
public class ProgramOptions extends CommandLineOptions
Base class for command line options that refer to a JAR file program.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringentryPointClass
-
Constructor Summary
Constructors Modifier Constructor Description protectedProgramOptions(org.apache.commons.cli.CommandLine line)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToConfiguration(org.apache.flink.configuration.Configuration configuration)static ProgramOptionscreate(org.apache.commons.cli.CommandLine line)protected String[]extractProgramArgs(org.apache.commons.cli.CommandLine line)List<URL>getClasspaths()booleangetDetachedMode()StringgetEntryPointClassName()StringgetJarFilePath()intgetParallelism()String[]getProgramArgs()org.apache.flink.runtime.jobgraph.SavepointRestoreSettingsgetSavepointRestoreSettings()booleanisShutdownOnAttachedExit()voidvalidate()-
Methods inherited from class org.apache.flink.client.cli.CommandLineOptions
isPrintHelp
-
-
-
-
Field Detail
-
entryPointClass
protected String entryPointClass
-
-
Constructor Detail
-
ProgramOptions
protected ProgramOptions(org.apache.commons.cli.CommandLine line) throws CliArgsException- Throws:
CliArgsException
-
-
Method Detail
-
extractProgramArgs
protected String[] extractProgramArgs(org.apache.commons.cli.CommandLine line)
-
validate
public void validate() throws CliArgsException- Throws:
CliArgsException
-
getJarFilePath
public String getJarFilePath()
-
getEntryPointClassName
public String getEntryPointClassName()
-
getProgramArgs
public String[] getProgramArgs()
-
getParallelism
public int getParallelism()
-
getDetachedMode
public boolean getDetachedMode()
-
isShutdownOnAttachedExit
public boolean isShutdownOnAttachedExit()
-
getSavepointRestoreSettings
public org.apache.flink.runtime.jobgraph.SavepointRestoreSettings getSavepointRestoreSettings()
-
applyToConfiguration
public void applyToConfiguration(org.apache.flink.configuration.Configuration configuration)
-
create
public static ProgramOptions create(org.apache.commons.cli.CommandLine line) throws CliArgsException
- Throws:
CliArgsException
-
-