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 a
ClusterConfiguration from the given list of command line
arguments.-
Constructor Summary
Constructors -
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.static org.apache.commons.cli.Optionsoptions()
-
Constructor Details
-
ClusterConfigurationParserFactory
public ClusterConfigurationParserFactory()
-
-
Method Details
-
options
public static org.apache.commons.cli.Options options() -
getOptions
public org.apache.commons.cli.Options getOptions()Description copied from interface:ParserResultFactoryReturns all relevantOptionsfor parsing the command line arguments.- Specified by:
getOptionsin interfaceParserResultFactory<ClusterConfiguration>- Returns:
- Options to use for the parsing
-
createResult
Description copied from interface:ParserResultFactoryCreate the result of the command line argument parsing.- Specified by:
createResultin interfaceParserResultFactory<ClusterConfiguration>- Parameters:
commandLine- to extract the options from- Returns:
- Result of the parsing
-