public abstract class AbstractCustomCommandLine extends Object implements CustomCommandLine
CustomCommandLine implementations which specify a JobManager address and a
ZooKeeper namespace.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.cli.Option |
zookeeperNamespaceOption |
| Constructor and Description |
|---|
AbstractCustomCommandLine() |
| 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.
|
static int |
handleCliArgsException(CliArgsException e,
org.slf4j.Logger logger) |
static int |
handleError(Throwable t,
org.slf4j.Logger logger) |
protected void |
printUsage() |
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, isActive, parseCommandLineOptionsprotected final org.apache.commons.cli.Option zookeeperNamespaceOption
public void addRunOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLineaddRunOptions in interface CustomCommandLinebaseOptions - The existing options.public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLineaddGeneralOptions in interface CustomCommandLinebaseOptions - The existing options.public 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 CustomCommandLineorg.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–2022 The Apache Software Foundation. All rights reserved.