public class CliFrontendParser extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.cli.Option |
ADDRESS_OPTION |
static org.apache.commons.cli.Option |
ARGS_OPTION |
static org.apache.commons.cli.Option |
DETACHED_OPTION |
static org.apache.commons.cli.Option |
PARALLELISM_OPTION |
static org.apache.commons.cli.Option |
PY_OPTION |
static org.apache.commons.cli.Option |
PYARCHIVE_OPTION |
static org.apache.commons.cli.Option |
PYCLIENTEXEC_OPTION |
static org.apache.commons.cli.Option |
PYEXEC_OPTION |
static org.apache.commons.cli.Option |
PYFILES_OPTION |
static org.apache.commons.cli.Option |
PYMODULE_OPTION |
static org.apache.commons.cli.Option |
PYREQUIREMENTS_OPTION |
static org.apache.commons.cli.Option |
SAVEPOINT_ALLOW_NON_RESTORED_OPTION |
static org.apache.commons.cli.Option |
SAVEPOINT_PATH_OPTION |
static org.apache.commons.cli.Option |
SAVEPOINT_RESTORE_MODE |
static org.apache.commons.cli.Option |
SHUTDOWN_IF_ATTACHED_OPTION |
static org.apache.commons.cli.Option |
STOP_AND_DRAIN |
static org.apache.commons.cli.Option |
STOP_WITH_SAVEPOINT_PATH |
static org.apache.commons.cli.Option |
YARN_DETACHED_OPTION
Deprecated.
use non-prefixed variant
DETACHED_OPTION for both YARN and non-YARN
deployments |
Constructor and Description |
---|
CliFrontendParser() |
Modifier and Type | Method and Description |
---|---|
static SavepointRestoreSettings |
createSavepointRestoreSettings(org.apache.commons.cli.CommandLine commandLine) |
static org.apache.commons.cli.Options |
getRunCommandOptions() |
static org.apache.commons.cli.Options |
mergeOptions(org.apache.commons.cli.Options optionsA,
org.apache.commons.cli.Options optionsB)
Merges the given
Options into a new Options object. |
static org.apache.commons.cli.CommandLine |
parse(org.apache.commons.cli.Options options,
String[] args,
boolean stopAtNonOptions) |
static void |
printHelp(Collection<CustomCommandLine> customCommandLines)
Prints the help for the client.
|
static void |
printHelpForCancel(Collection<CustomCommandLine> customCommandLines) |
static void |
printHelpForInfo() |
static void |
printHelpForList(Collection<CustomCommandLine> customCommandLines) |
static void |
printHelpForRun(Collection<CustomCommandLine> customCommandLines) |
static void |
printHelpForRunApplication(Collection<CustomCommandLine> customCommandLines) |
static void |
printHelpForSavepoint(Collection<CustomCommandLine> customCommandLines) |
static void |
printHelpForStop(Collection<CustomCommandLine> customCommandLines) |
public static final org.apache.commons.cli.Option PARALLELISM_OPTION
public static final org.apache.commons.cli.Option DETACHED_OPTION
public static final org.apache.commons.cli.Option SHUTDOWN_IF_ATTACHED_OPTION
@Deprecated public static final org.apache.commons.cli.Option YARN_DETACHED_OPTION
DETACHED_OPTION
for both YARN and non-YARN
deploymentspublic static final org.apache.commons.cli.Option ARGS_OPTION
public static final org.apache.commons.cli.Option ADDRESS_OPTION
public static final org.apache.commons.cli.Option SAVEPOINT_PATH_OPTION
public static final org.apache.commons.cli.Option SAVEPOINT_ALLOW_NON_RESTORED_OPTION
public static final org.apache.commons.cli.Option SAVEPOINT_RESTORE_MODE
public static final org.apache.commons.cli.Option STOP_WITH_SAVEPOINT_PATH
public static final org.apache.commons.cli.Option STOP_AND_DRAIN
public static final org.apache.commons.cli.Option PY_OPTION
public static final org.apache.commons.cli.Option PYFILES_OPTION
public static final org.apache.commons.cli.Option PYMODULE_OPTION
public static final org.apache.commons.cli.Option PYREQUIREMENTS_OPTION
public static final org.apache.commons.cli.Option PYARCHIVE_OPTION
public static final org.apache.commons.cli.Option PYEXEC_OPTION
public static final org.apache.commons.cli.Option PYCLIENTEXEC_OPTION
public static org.apache.commons.cli.Options getRunCommandOptions()
public static void printHelp(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForRun(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForRunApplication(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForInfo()
public static void printHelpForList(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForStop(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForCancel(Collection<CustomCommandLine> customCommandLines)
public static void printHelpForSavepoint(Collection<CustomCommandLine> customCommandLines)
public static SavepointRestoreSettings createSavepointRestoreSettings(org.apache.commons.cli.CommandLine commandLine)
public static org.apache.commons.cli.CommandLine parse(org.apache.commons.cli.Options options, String[] args, boolean stopAtNonOptions) throws CliArgsException
CliArgsException
public static org.apache.commons.cli.Options mergeOptions(@Nullable org.apache.commons.cli.Options optionsA, @Nullable org.apache.commons.cli.Options optionsB)
Options
into a new Options object.optionsA
- options to merge, can be null if noneoptionsB
- options to merge, can be null if noneCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.