Class StandaloneApplicationClusterConfigurationParserFactory
- java.lang.Object
-
- org.apache.flink.container.entrypoint.StandaloneApplicationClusterConfigurationParserFactory
-
- All Implemented Interfaces:
ParserResultFactory<org.apache.flink.container.entrypoint.StandaloneApplicationClusterConfiguration>
public class StandaloneApplicationClusterConfigurationParserFactory extends Object implements ParserResultFactory<org.apache.flink.container.entrypoint.StandaloneApplicationClusterConfiguration>
Parser factory which generates aStandaloneApplicationClusterConfiguration
from a given list of command line arguments.
-
-
Constructor Summary
Constructors Constructor Description StandaloneApplicationClusterConfigurationParserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.container.entrypoint.StandaloneApplicationClusterConfiguration
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
public org.apache.commons.cli.Options getOptions()
Description copied from interface:ParserResultFactory
Returns all relevantOptions
for parsing the command line arguments.- Specified by:
getOptions
in interfaceParserResultFactory<org.apache.flink.container.entrypoint.StandaloneApplicationClusterConfiguration>
- Returns:
- Options to use for the parsing
-
createResult
public org.apache.flink.container.entrypoint.StandaloneApplicationClusterConfiguration createResult(@Nonnull org.apache.commons.cli.CommandLine commandLine) throws FlinkParseException
Description copied from interface:ParserResultFactory
Create the result of the command line argument parsing.- Specified by:
createResult
in interfaceParserResultFactory<org.apache.flink.container.entrypoint.StandaloneApplicationClusterConfiguration>
- Parameters:
commandLine
- to extract the options from- Returns:
- Result of the parsing
- Throws:
FlinkParseException
- Thrown on failures while parsing command line arguments
-
-