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 Details

    • entryPointClass

      protected String entryPointClass
  • Constructor Details

  • Method Details

    • 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()
    • getClasspaths

      public List<URL> getClasspaths()
    • 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