Package org.apache.flink.client.cli
Class DefaultCLI
java.lang.Object
org.apache.flink.client.cli.AbstractCustomCommandLine
org.apache.flink.client.cli.DefaultCLI
- All Implemented Interfaces:
CustomCommandLine
The default CLI which is used for interaction with standalone clusters.
-
Field Summary
FieldsFields inherited from class org.apache.flink.client.cli.AbstractCustomCommandLine
zookeeperNamespaceOption -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGeneralOptions(org.apache.commons.cli.Options baseOptions) Adds custom options to the existing general options.getId()Gets the unique identifier of this CustomCommandLine.booleanisActive(org.apache.commons.cli.CommandLine commandLine) Signals whether the custom command-line wants to execute or not.org.apache.flink.configuration.ConfigurationtoConfiguration(org.apache.commons.cli.CommandLine commandLine) Materializes the command line arguments in the givenCommandLineto aConfigurationand returns it.Methods inherited from class org.apache.flink.client.cli.AbstractCustomCommandLine
addRunOptions, handleCliArgsException, handleError, printUsageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.client.cli.CustomCommandLine
parseCommandLineOptions
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
DefaultCLI
public DefaultCLI()
-
-
Method Details
-
isActive
public boolean isActive(org.apache.commons.cli.CommandLine commandLine) Description copied from interface:CustomCommandLineSignals whether the custom command-line wants to execute or not.- Parameters:
commandLine- The command-line options- Returns:
- True if the command-line wants to run, False otherwise
-
toConfiguration
public org.apache.flink.configuration.Configuration toConfiguration(org.apache.commons.cli.CommandLine commandLine) throws org.apache.flink.util.FlinkException Description copied from interface:CustomCommandLineMaterializes the command line arguments in the givenCommandLineto aConfigurationand returns it.- Specified by:
toConfigurationin interfaceCustomCommandLine- Overrides:
toConfigurationin classAbstractCustomCommandLine- Throws:
org.apache.flink.util.FlinkException
-
getId
Description copied from interface:CustomCommandLineGets the unique identifier of this CustomCommandLine.- Returns:
- A unique identifier
-
addGeneralOptions
public void addGeneralOptions(org.apache.commons.cli.Options baseOptions) Description copied from interface:CustomCommandLineAdds custom options to the existing general options.- Specified by:
addGeneralOptionsin interfaceCustomCommandLine- Overrides:
addGeneralOptionsin classAbstractCustomCommandLine- Parameters:
baseOptions- The existing options.
-