@Service(name="multimode") @PerLookup public class MultimodeCommand extends CLICommand
argv, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, WARNING| Constructor and Description |
|---|
MultimodeCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
executeCommand()
Execute the command using the options in options and the
operands in operands.
|
protected Collection<org.glassfish.api.admin.CommandModel.ParamModel> |
usageOptions()
In the usage message modify the --printprompt option to have a default
based on the --interactive option.
|
protected void |
validate()
The validate method validates that the type and quantity of parameters
and operands matches the requirements for this command.
|
checkHelp, execute, expandManPage, getBooleanOption, getBriefCommandUsage, getCommand, getCommand, getCommandScope, getCommandUsage, getManPage, getName, getOperandModel, getOption, getOptions, getPassword, getPassword, getProgramOptions, getSystemProperties, getSystemProperty, getUsage, initializeLogger, initializePasswords, inject, ok, parse, postConstruct, prepare, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, setCommandScope, toStringprotected void validate()
throws org.glassfish.api.admin.CommandException,
org.glassfish.api.admin.CommandValidationException
validate in class CLICommandorg.glassfish.api.admin.CommandException - if execution of the command failsorg.glassfish.api.admin.CommandValidationException - if there's something wrong
with the options or argumentsprotected Collection<org.glassfish.api.admin.CommandModel.ParamModel> usageOptions()
usageOptions in class CLICommandprotected int executeCommand()
throws org.glassfish.api.admin.CommandException,
org.glassfish.api.admin.CommandValidationException
CLICommandexecuteCommand in class CLICommandorg.glassfish.api.admin.CommandException - if execution of the command failsorg.glassfish.api.admin.CommandValidationException - if there's something wrong
with the options or argumentsCopyright © 2019. All rights reserved.