public class CacheDestroy extends AbstractCommand<VisorCacheStopTaskArg>
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_NAMES_ARG
Command argument to specify a comma-separated list of cache names to be destroyed.
|
static String |
CONFIRM_MSG
Confirmation message format.
|
static String |
DESTROY_ALL_ARG
Command argument to destroy all user-created caches.
|
static String |
NOOP_MSG
No user-created caches exists message.
|
static String |
RESULT_MSG
Result message.
|
verbose| Constructor and Description |
|---|
CacheDestroy() |
| Modifier and Type | Method and Description |
|---|---|
VisorCacheStopTaskArg |
arg() |
String |
confirmationPrompt() |
Object |
execute(GridClientConfiguration clientCfg,
Logger log)
Actual command execution.
|
String |
name() |
void |
parseArguments(CommandArgIterator argIter)
Parse command-specific arguments.
|
void |
prepareConfirmation(GridClientConfiguration clientCfg)
Prepares confirmation for the command.
|
void |
printUsage(Logger log)
Print info for user about command (parameters, use cases and so on).
|
execute, usageCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexperimental, extendToLen, startClient, startClientBeforeNodeStart, usage, usage, usageParamspublic static final String DESTROY_ALL_ARG
public static final String CACHE_NAMES_ARG
public static final String CONFIRM_MSG
public static final String NOOP_MSG
public static final String RESULT_MSG
public VisorCacheStopTaskArg arg()
Command.parseArguments(CommandArgIterator) call.public void printUsage(Logger log)
log - Logger to use.public void parseArguments(CommandArgIterator argIter)
argIter - Argument iterator.public void prepareConfirmation(GridClientConfiguration clientCfg) throws Exception
clientCfg - Thin client configuration.Exception - If error occur.public String confirmationPrompt()
public Object execute(GridClientConfiguration clientCfg, Logger log) throws Exception
clientCfg - Thin client configuration if connection to cluster is necessary.log - Logger to use.Exception - If error occur.public String name()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022