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 TypeMethodDescriptioncreateResult(org.apache.commons.cli.CommandLine commandLine) Create the result of the command line argument parsing.org.apache.commons.cli.OptionsReturns all relevantOptionsfor parsing the command line arguments.
-
Method Details
-
getOptions
org.apache.commons.cli.Options getOptions()Returns all relevantOptionsfor parsing the command line arguments.- Returns:
- Options to use for the parsing
-
createResult
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
-