public abstract class AbstractCustomCommandLine extends Object implements CustomCommandLine
CustomCommandLine implementations which specify a JobManager address and
a ZooKeeper namespace.| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.commons.cli.Option |
addressOption |
protected org.apache.flink.configuration.Configuration |
configuration |
protected org.apache.commons.cli.Option |
zookeeperNamespaceOption |
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractCustomCommandLine(org.apache.flink.configuration.Configuration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
org.apache.flink.configuration.Configuration |
applyCommandLineOptionsToConfiguration(org.apache.commons.cli.CommandLine commandLine)
Override configuration settings by specified command line options.
|
org.apache.flink.configuration.Configuration |
getConfiguration() |
static int |
handleCliArgsException(CliArgsException e,
org.slf4j.Logger logger) |
static int |
handleError(Throwable t,
org.slf4j.Logger logger) |
protected void |
printUsage() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, isActive, parseCommandLineOptionsprotected final org.apache.commons.cli.Option zookeeperNamespaceOption
protected final org.apache.commons.cli.Option addressOption
protected final org.apache.flink.configuration.Configuration configuration
protected AbstractCustomCommandLine(org.apache.flink.configuration.Configuration configuration)
public org.apache.flink.configuration.Configuration getConfiguration()
public 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 applyCommandLineOptionsToConfiguration(org.apache.commons.cli.CommandLine commandLine)
throws org.apache.flink.util.FlinkException
CustomCommandLineapplyCommandLineOptionsToConfiguration 在接口中 CustomCommandLinecommandLine - containing the overriding valuesorg.apache.flink.util.FlinkExceptionprotected void printUsage()
public static int handleCliArgsException(CliArgsException e, org.slf4j.Logger logger)
public static int handleError(Throwable t, org.slf4j.Logger logger)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.