Interface ParserResultFactory<T>

Type Parameters:
T - type of the parsed result
All Known Implementing Classes:
ClusterConfigurationParserFactory, DynamicParametersConfigurationParserFactory, EntrypointClusterConfigurationParserFactory, ModifiableClusterConfigurationParserFactory

public interface ParserResultFactory<T>
Parser result factory used by the CommandLineParser.
  • Method Summary

    Modifier and Type
    Method
    Description
    createResult(org.apache.commons.cli.CommandLine commandLine)
    Create the result of the command line argument parsing.
    org.apache.commons.cli.Options
    Returns all relevant Options for parsing the command line arguments.
  • Method Details

    • getOptions

      org.apache.commons.cli.Options getOptions()
      Returns all relevant Options for parsing the command line arguments.
      Returns:
      Options to use for the parsing
    • createResult

      T createResult(@Nonnull org.apache.commons.cli.CommandLine commandLine) throws FlinkParseException
      Create the result of the command line argument parsing.
      Parameters:
      commandLine - to extract the options from
      Returns:
      Result of the parsing
      Throws:
      FlinkParseException - Thrown on failures while parsing command line arguments