Class AbstractCustomCommandLine

java.lang.Object
org.apache.flink.client.cli.AbstractCustomCommandLine
All Implemented Interfaces:
CustomCommandLine
Direct Known Subclasses:
DefaultCLI

public abstract class AbstractCustomCommandLine extends Object implements CustomCommandLine
Base class for CustomCommandLine implementations which specify a JobManager address and a ZooKeeper namespace.
  • Field Details

    • zookeeperNamespaceOption

      protected final org.apache.commons.cli.Option zookeeperNamespaceOption
  • Constructor Details

    • AbstractCustomCommandLine

      public AbstractCustomCommandLine()
  • Method Details

    • addRunOptions

      public void addRunOptions(org.apache.commons.cli.Options baseOptions)
      Description copied from interface: CustomCommandLine
      Adds custom options to the existing run options.
      Specified by:
      addRunOptions in interface CustomCommandLine
      Parameters:
      baseOptions - The existing options.
    • addGeneralOptions

      public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
      Description copied from interface: CustomCommandLine
      Adds custom options to the existing general options.
      Specified by:
      addGeneralOptions in interface CustomCommandLine
      Parameters:
      baseOptions - The existing options.
    • toConfiguration

      public org.apache.flink.configuration.Configuration toConfiguration(org.apache.commons.cli.CommandLine commandLine) throws org.apache.flink.util.FlinkException
      Description copied from interface: CustomCommandLine
      Materializes the command line arguments in the given CommandLine to a Configuration and returns it.
      Specified by:
      toConfiguration in interface CustomCommandLine
      Throws:
      org.apache.flink.util.FlinkException
    • printUsage

      protected void printUsage()
    • handleCliArgsException

      public static int handleCliArgsException(CliArgsException e, org.slf4j.Logger logger)
    • handleError

      public static int handleError(Throwable t, org.slf4j.Logger logger)