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() |
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, wait
getId, isActive, parseCommandLineOptions
protected final org.apache.commons.cli.Option zookeeperNamespaceOption
public void addRunOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLine
addRunOptions
in interface CustomCommandLine
baseOptions
- The existing options.public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
CustomCommandLine
addGeneralOptions
in interface CustomCommandLine
baseOptions
- The existing options.public Configuration toConfiguration(org.apache.commons.cli.CommandLine commandLine) throws FlinkException
CustomCommandLine
CommandLine
to a Configuration
and returns it.toConfiguration
in interface CustomCommandLine
FlinkException
protected void printUsage()
public static int handleCliArgsException(CliArgsException e, org.slf4j.Logger logger)
public static int handleError(Throwable t, org.slf4j.Logger logger)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.