public class DefaultCLI extends AbstractCustomCommandLine
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
zookeeperNamespaceOption| Constructor and Description |
|---|
DefaultCLI() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGeneralOptions(org.apache.commons.cli.Options baseOptions)
Adds custom options to the existing general 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. |
addRunOptions, handleCliArgsException, handleError, printUsageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseCommandLineOptionspublic static final String ID
public boolean isActive(org.apache.commons.cli.CommandLine commandLine)
CustomCommandLinecommandLine - The command-line optionspublic org.apache.flink.configuration.Configuration toConfiguration(org.apache.commons.cli.CommandLine commandLine)
throws org.apache.flink.util.FlinkException
CustomCommandLineCommandLine to a Configuration and returns it.toConfiguration in interface CustomCommandLinetoConfiguration in class AbstractCustomCommandLineorg.apache.flink.util.FlinkExceptionpublic String getId()
CustomCommandLinepublic void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLineaddGeneralOptions in interface CustomCommandLineaddGeneralOptions in class AbstractCustomCommandLinebaseOptions - The existing options.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.