@Internal public class ExecutorCLI extends Object implements CustomCommandLine
CustomCommandLine
that only expects
the execution.target parameter to be explicitly specified and simply forwards the
rest of the options specified with -D to the corresponding PipelineExecutor
for further parsing.Constructor and Description |
---|
ExecutorCLI(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.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parseCommandLineOptions
public ExecutorCLI(Configuration configuration)
public boolean isActive(org.apache.commons.cli.CommandLine commandLine)
CustomCommandLine
isActive
in interface CustomCommandLine
commandLine
- The command-line optionspublic String getId()
CustomCommandLine
getId
in interface CustomCommandLine
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 applyCommandLineOptionsToConfiguration(org.apache.commons.cli.CommandLine commandLine)
CustomCommandLine
applyCommandLineOptionsToConfiguration
in interface CustomCommandLine
commandLine
- containing the overriding valuesCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.