Interface ParserResultFactory<T>
-
- Type Parameters:
T
- type of the parsed result
- All Known Implementing Classes:
ClusterConfigurationParserFactory
,DynamicParametersConfigurationParserFactory
,EntrypointClusterConfigurationParserFactory
,ModifiableClusterConfigurationParserFactory
,StandaloneApplicationClusterConfigurationParserFactory
public interface ParserResultFactory<T>
Parser result factory used by theCommandLineParser
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
createResult(org.apache.commons.cli.CommandLine commandLine)
Create the result of the command line argument parsing.org.apache.commons.cli.Options
getOptions()
Returns all relevantOptions
for parsing the command line arguments.
-
-
-
Method Detail
-
getOptions
org.apache.commons.cli.Options getOptions()
Returns all relevantOptions
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
-
-