Class GenericCLI

  • All Implemented Interfaces:
    CustomCommandLine

    @Internal
    public class GenericCLI
    extends Object
    implements CustomCommandLine
    A generic implementation of the CustomCommandLine that only expects the execution.target parameter to be explicitly specified and simply forwards the rest of the options specified with -D to the corresponding PipelineExecutor for further parsing.
    • Constructor Detail

      • GenericCLI

        public GenericCLI​(org.apache.flink.configuration.Configuration configuration,
                          String configDir)
    • Method Detail

      • isActive

        public boolean isActive​(org.apache.commons.cli.CommandLine commandLine)
        Description copied from interface: CustomCommandLine
        Signals whether the custom command-line wants to execute or not.
        Specified by:
        isActive in interface CustomCommandLine
        Parameters:
        commandLine - The command-line options
        Returns:
        True if the command-line wants to run, False otherwise
      • 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)
        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