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 aClusterConfigurationfrom 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 ClusterConfigurationcreateResult(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.static org.apache.commons.cli.Optionsoptions()
-
-
-
Method Detail
-
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
public ClusterConfiguration createResult(@Nonnull org.apache.commons.cli.CommandLine commandLine)
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
-
-