public abstract class AbstractCommand<T> extends Object implements Command<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
verbose
Use verbose mode or not.
|
| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(GridClientConfiguration clientCfg,
Logger log,
boolean verbose)
Actual command execution with verbose mode if needed.
|
protected void |
usageCache(Logger logger,
CacheSubcommands cmd,
String description,
Map<String,String> paramsDesc,
String... args)
Print cache command usage with default indention.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitarg, confirmationPrompt, execute, experimental, extendToLen, name, parseArguments, prepareConfirmation, printUsage, startClient, startClientBeforeNodeStart, usage, usage, usageParamspublic Object execute(GridClientConfiguration clientCfg, Logger log, boolean verbose) throws Exception
execute in interface Command<T>clientCfg - Thin client configuration if connection to cluster is necessary.log - Logger to use.verbose - Use verbose mode or notException - If error occur.Command.execute(GridClientConfiguration, Logger)protected void usageCache(Logger logger, CacheSubcommands cmd, String description, Map<String,String> paramsDesc, String... args)
logger - Logger to use.cmd - Cache command.description - Command description.paramsDesc - Parameter desciptors.args - Cache command arguments.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022