public interface CustomCommandLine
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.
|
Configuration |
applyCommandLineOptionsToConfiguration(org.apache.commons.cli.CommandLine commandLine)
Override configuration settings by specified command line options.
|
String |
getId()
Gets the unique identifier of this CustomCommandLine.
|
boolean |
isActive(org.apache.commons.cli.CommandLine commandLine)
Signals whether the custom command-line wants to execute or not.
|
default org.apache.commons.cli.CommandLine |
parseCommandLineOptions(String[] args,
boolean stopAtNonOptions) |
boolean isActive(org.apache.commons.cli.CommandLine commandLine)
commandLine
- The command-line optionsString getId()
void addRunOptions(org.apache.commons.cli.Options baseOptions)
baseOptions
- The existing options.void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
baseOptions
- The existing options.Configuration applyCommandLineOptionsToConfiguration(org.apache.commons.cli.CommandLine commandLine) throws FlinkException
commandLine
- containing the overriding valuesFlinkException
default org.apache.commons.cli.CommandLine parseCommandLineOptions(String[] args, boolean stopAtNonOptions) throws CliArgsException
CliArgsException
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.