@Internal public class GenericCLI extends Object implements CustomCommandLine
CustomCommandLine that only expects the execution.target
parameter to be explicitly specified and simply forwards the rest of the options specified with
-D to the corresponding PipelineExecutor for further parsing.| 构造器和说明 |
|---|
GenericCLI(org.apache.flink.configuration.Configuration configuration,
String configDir) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addGeneralOptions(org.apache.commons.cli.Options baseOptions)
Adds custom options to the existing general options.
|
void |
addRunOptions(org.apache.commons.cli.Options baseOptions)
Adds custom options to the existing run options.
|
String |
getId()
Gets the unique identifier of this CustomCommandLine.
|
boolean |
isActive(org.apache.commons.cli.CommandLine commandLine)
Signals whether the custom command-line wants to execute or not.
|
org.apache.flink.configuration.Configuration |
toConfiguration(org.apache.commons.cli.CommandLine commandLine)
Materializes the command line arguments in the given
CommandLine to a Configuration and returns it. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseCommandLineOptionspublic GenericCLI(org.apache.flink.configuration.Configuration configuration,
String configDir)
public boolean isActive(org.apache.commons.cli.CommandLine commandLine)
CustomCommandLineisActive 在接口中 CustomCommandLinecommandLine - The command-line optionspublic String getId()
CustomCommandLinegetId 在接口中 CustomCommandLinepublic void addRunOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLineaddRunOptions 在接口中 CustomCommandLinebaseOptions - The existing options.public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLineaddGeneralOptions 在接口中 CustomCommandLinebaseOptions - The existing options.public org.apache.flink.configuration.Configuration toConfiguration(org.apache.commons.cli.CommandLine commandLine)
CustomCommandLineCommandLine to a Configuration and returns it.toConfiguration 在接口中 CustomCommandLineCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.