public abstract class AbstractCustomCommandLine<T> extends Object implements CustomCommandLine<T>
CustomCommandLine implementations which specify a JobManager address and
a ZooKeeper namespace.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.cli.Option |
addressOption |
protected org.apache.flink.configuration.Configuration |
configuration |
protected org.apache.commons.cli.Option |
zookeeperNamespaceOption |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCustomCommandLine(org.apache.flink.configuration.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateClusterDescriptor, getClusterId, getClusterSpecification, getId, 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 in interface CustomCommandLine<T>baseOptions - The existing options.public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLineaddGeneralOptions in interface CustomCommandLine<T>baseOptions - The existing options.protected org.apache.flink.configuration.Configuration applyCommandLineOptionsToConfiguration(org.apache.commons.cli.CommandLine commandLine)
throws org.apache.flink.util.FlinkException
commandLine - containing the overriding valuesorg.apache.flink.util.FlinkExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.