Package org.apache.flink.client.cli
Class AbstractCustomCommandLine
java.lang.Object
org.apache.flink.client.cli.AbstractCustomCommandLine
- All Implemented Interfaces:
CustomCommandLine
- Direct Known Subclasses:
DefaultCLI
Base class for
CustomCommandLine implementations which specify a JobManager address and a
ZooKeeper namespace.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.cli.Option -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGeneralOptions(org.apache.commons.cli.Options baseOptions) Adds custom options to the existing general options.voidaddRunOptions(org.apache.commons.cli.Options baseOptions) Adds custom options to the existing run options.static inthandleCliArgsException(CliArgsException e, org.slf4j.Logger logger) static inthandleError(Throwable t, org.slf4j.Logger logger) protected voidorg.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.client.cli.CustomCommandLine
getId, isActive, parseCommandLineOptions
-
Field Details
-
zookeeperNamespaceOption
protected final org.apache.commons.cli.Option zookeeperNamespaceOption
-
-
Constructor Details
-
AbstractCustomCommandLine
public AbstractCustomCommandLine()
-
-
Method Details
-
addRunOptions
public void addRunOptions(org.apache.commons.cli.Options baseOptions) Description copied from interface:CustomCommandLineAdds custom options to the existing run options.- Specified by:
addRunOptionsin interfaceCustomCommandLine- Parameters:
baseOptions- The existing options.
-
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- Parameters:
baseOptions- The existing options.
-
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- Throws:
org.apache.flink.util.FlinkException
-
printUsage
protected void printUsage() -
handleCliArgsException
-
handleError
-