public class CliFrontendParser extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static org.apache.commons.cli.Option |
ADDRESS_OPTION |
static org.apache.commons.cli.Option |
DETACHED_OPTION |
static org.apache.commons.cli.Option |
PARALLELISM_OPTION |
static org.apache.commons.cli.Option |
SAVEPOINT_ALLOW_NON_RESTORED_OPTION |
static org.apache.commons.cli.Option |
SAVEPOINT_PATH_OPTION |
static org.apache.commons.cli.Option |
SHUTDOWN_IF_ATTACHED_OPTION |
static org.apache.commons.cli.Option |
STOP_AND_DRAIN |
static org.apache.commons.cli.Option |
STOP_WITH_SAVEPOINT_PATH |
static org.apache.commons.cli.Option |
YARN_DETACHED_OPTION
已过时。
use non-prefixed variant
DETACHED_OPTION for both YARN and non-YARN deployments |
| 构造器和说明 |
|---|
CliFrontendParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.flink.runtime.jobgraph.SavepointRestoreSettings |
createSavepointRestoreSettings(org.apache.commons.cli.CommandLine commandLine) |
static org.apache.commons.cli.Options |
getRunCommandOptions() |
static org.apache.commons.cli.Options |
mergeOptions(org.apache.commons.cli.Options optionsA,
org.apache.commons.cli.Options optionsB)
Merges the given
Options into a new Options object. |
static org.apache.commons.cli.CommandLine |
parse(org.apache.commons.cli.Options options,
String[] args,
boolean stopAtNonOptions) |
static void |
printHelp(Collection<CustomCommandLine> customCommandLines)
Prints the help for the client.
|
static void |
printHelpForCancel(Collection<CustomCommandLine> customCommandLines) |
static void |
printHelpForInfo() |
static void |
printHelpForList(Collection<CustomCommandLine> customCommandLines) |
static void |
printHelpForRun(Collection<CustomCommandLine> customCommandLines) |
static void |
printHelpForSavepoint(Collection<CustomCommandLine> customCommandLines) |
static void |
printHelpForStop(Collection<CustomCommandLine> customCommandLines) |
public static final org.apache.commons.cli.Option PARALLELISM_OPTION
public static final org.apache.commons.cli.Option DETACHED_OPTION
public static final org.apache.commons.cli.Option SHUTDOWN_IF_ATTACHED_OPTION
@Deprecated public static final org.apache.commons.cli.Option YARN_DETACHED_OPTION
DETACHED_OPTION for both YARN and non-YARN deploymentspublic static final org.apache.commons.cli.Option ADDRESS_OPTION
public static final org.apache.commons.cli.Option SAVEPOINT_PATH_OPTION
public static final org.apache.commons.cli.Option SAVEPOINT_ALLOW_NON_RESTORED_OPTION
public static final org.apache.commons.cli.Option STOP_WITH_SAVEPOINT_PATH
public static final org.apache.commons.cli.Option STOP_AND_DRAIN
public static org.apache.commons.cli.Options getRunCommandOptions()
public static void printHelp(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForRun(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForInfo()
public static void printHelpForList(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForStop(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForCancel(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForSavepoint(Collection<CustomCommandLine> customCommandLines)
public static org.apache.flink.runtime.jobgraph.SavepointRestoreSettings createSavepointRestoreSettings(org.apache.commons.cli.CommandLine commandLine)
public static org.apache.commons.cli.CommandLine parse(org.apache.commons.cli.Options options,
String[] args,
boolean stopAtNonOptions)
throws CliArgsException
CliArgsExceptionpublic static org.apache.commons.cli.Options mergeOptions(@Nullable org.apache.commons.cli.Options optionsA, @Nullable org.apache.commons.cli.Options optionsB)
Options into a new Options object.optionsA - options to merge, can be null if noneoptionsB - options to merge, can be null if noneCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.