Package org.apache.flink.client.cli
Class ProgramOptions
java.lang.Object
org.apache.flink.client.cli.CommandLineOptions
org.apache.flink.client.cli.ProgramOptions
Base class for command line options that refer to a JAR file program.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToConfiguration(org.apache.flink.configuration.Configuration configuration) static ProgramOptionscreate(org.apache.commons.cli.CommandLine line) protected String[]extractProgramArgs(org.apache.commons.cli.CommandLine line) booleanintString[]org.apache.flink.runtime.jobgraph.SavepointRestoreSettingsbooleanvoidvalidate()Methods inherited from class org.apache.flink.client.cli.CommandLineOptions
isPrintHelp
-
Field Details
-
entryPointClass
-
-
Constructor Details
-
ProgramOptions
- Throws:
CliArgsException
-
-
Method Details
-
extractProgramArgs
-
validate
- Throws:
CliArgsException
-
getJarFilePath
-
getEntryPointClassName
-
getClasspaths
-
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
-