public class CacheClearCommand extends Object implements ComputeCommand<CacheClearCommandArg,ClearCachesTaskResult>
| Modifier and Type | Field and Description |
|---|---|
static String |
CLEAR_MSG
Message that contains cleared caches.
|
static String |
CONFIRM_MSG
Confirmation message format.
|
static String |
SKIP_CLEAR_MSG
Message that contains not-cleared caches (they don't exist).
|
CMD_NAME_POSTFIX| Constructor and Description |
|---|
CacheClearCommand() |
| Modifier and Type | Method and Description |
|---|---|
Class<CacheClearCommandArg> |
argClass() |
String |
confirmationPrompt(CacheClearCommandArg arg) |
String |
description()
Command description.
|
void |
printResult(CacheClearCommandArg arg,
ClearCachesTaskResult res,
Consumer<String> printer)
Prints command result to the user.
|
Class<ClearCachesTask> |
taskClass() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnodesdeprecationMessagepublic static final String CLEAR_MSG
public static final String SKIP_CLEAR_MSG
public static final String CONFIRM_MSG
public String description()
description in interface Command<CacheClearCommandArg,ClearCachesTaskResult>public String confirmationPrompt(CacheClearCommandArg arg)
confirmationPrompt in interface Command<CacheClearCommandArg,ClearCachesTaskResult>arg - Command argument.null it means that confirmation is not needed.public Class<CacheClearCommandArg> argClass()
argClass in interface Command<CacheClearCommandArg,ClearCachesTaskResult>public Class<ClearCachesTask> taskClass()
taskClass in interface ComputeCommand<CacheClearCommandArg,ClearCachesTaskResult>public void printResult(CacheClearCommandArg arg, ClearCachesTaskResult res, Consumer<String> printer)
printResult in interface ComputeCommand<CacheClearCommandArg,ClearCachesTaskResult>arg - Argument.res - Result.printer - Implementation specific printer.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023