Class DefaultCLI

All Implemented Interfaces:
CustomCommandLine

public class DefaultCLI extends AbstractCustomCommandLine
The default CLI which is used for interaction with standalone clusters.
  • Field Details

  • Constructor Details

    • DefaultCLI

      public DefaultCLI()
  • Method Details

    • 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.
      Parameters:
      commandLine - The command-line options
      Returns:
      True if the command-line wants to run, False otherwise
    • 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
      Overrides:
      toConfiguration in class AbstractCustomCommandLine
      Throws:
      org.apache.flink.util.FlinkException
    • getId

      public String getId()
      Description copied from interface: CustomCommandLine
      Gets the unique identifier of this CustomCommandLine.
      Returns:
      A unique identifier
    • 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
      Overrides:
      addGeneralOptions in class AbstractCustomCommandLine
      Parameters:
      baseOptions - The existing options.