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.
|
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) |
Configuration |
toConfiguration(org.apache.commons.cli.CommandLine commandLine)
Materializes the command line arguments in the given
CommandLine to a Configuration and returns it. |
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 toConfiguration(org.apache.commons.cli.CommandLine commandLine) throws FlinkException
CommandLine
to a Configuration
and returns it.FlinkException
default org.apache.commons.cli.CommandLine parseCommandLineOptions(String[] args, boolean stopAtNonOptions) throws CliArgsException
CliArgsException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.