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 theCommandLineParser.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TcreateResult(org.apache.commons.cli.CommandLine commandLine)Create the result of the command line argument parsing.org.apache.commons.cli.OptionsgetOptions()Returns all relevantOptionsfor parsing the command line arguments.
-
-
-
Method Detail
-
getOptions
org.apache.commons.cli.Options getOptions()
Returns all relevantOptionsfor 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
-
-