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 Configuration |
configuration |
protected org.apache.commons.cli.Option |
zookeeperNamespaceOption |
Modifier | Constructor and Description |
---|---|
protected |
AbstractCustomCommandLine(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 Configuration |
applyCommandLineOptionsToConfiguration(org.apache.commons.cli.CommandLine commandLine)
Override configuration settings by specified command line options.
|
Configuration |
getConfiguration() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createClusterDescriptor, getClusterId, getClusterSpecification, getId, isActive, parseCommandLineOptions
protected final org.apache.commons.cli.Option zookeeperNamespaceOption
protected final org.apache.commons.cli.Option addressOption
protected final Configuration configuration
protected AbstractCustomCommandLine(Configuration configuration)
public Configuration getConfiguration()
public void addRunOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLine
addRunOptions
in interface CustomCommandLine<T>
baseOptions
- The existing options.public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLine
addGeneralOptions
in interface CustomCommandLine<T>
baseOptions
- The existing options.protected Configuration applyCommandLineOptionsToConfiguration(org.apache.commons.cli.CommandLine commandLine) throws FlinkException
commandLine
- containing the overriding valuesFlinkException
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.