Class ClusterConfigurationParserFactory
- java.lang.Object
-
- org.apache.flink.runtime.entrypoint.ClusterConfigurationParserFactory
-
- All Implemented Interfaces:
ParserResultFactory<ClusterConfiguration>
public class ClusterConfigurationParserFactory extends Object implements ParserResultFactory<ClusterConfiguration>
Parser factory which generates aClusterConfiguration
from the given list of command line arguments.
-
-
Constructor Summary
Constructors Constructor Description ClusterConfigurationParserFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterConfiguration
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.static org.apache.commons.cli.Options
options()
-
-
-
Method Detail
-
options
public static org.apache.commons.cli.Options options()
-
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<ClusterConfiguration>
- Returns:
- Options to use for the parsing
-
createResult
public ClusterConfiguration createResult(@Nonnull org.apache.commons.cli.CommandLine commandLine)
Description copied from interface:ParserResultFactory
Create the result of the command line argument parsing.- Specified by:
createResult
in interfaceParserResultFactory<ClusterConfiguration>
- Parameters:
commandLine
- to extract the options from- Returns:
- Result of the parsing
-
-