public class CacheDestroyCommand extends Object implements ComputeCommand<CacheDestroyCommandArg,Void>, PreparableCommand<CacheDestroyCommandArg,Void>
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIRM_MSG
Confirmation message format.
|
static String |
NOOP_MSG
No user-created caches exists message.
|
static String |
RESULT_MSG
Result message.
|
CMD_NAME_POSTFIX| Constructor and Description |
|---|
CacheDestroyCommand() |
| Modifier and Type | Method and Description |
|---|---|
Class<CacheDestroyCommandArg> |
argClass() |
String |
confirmationPrompt(CacheDestroyCommandArg arg) |
String |
description()
Command description.
|
boolean |
prepare(@Nullable GridClient cli,
@Nullable Ignite ignite,
CacheDestroyCommandArg arg,
Consumer<String> printer)
Enriches argument with cluster information if required.
|
void |
printResult(CacheDestroyCommandArg arg,
Void res,
Consumer<String> printer)
Prints command result to the user.
|
Class |
taskClass() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnodesdeprecationMessagepublic static final String CONFIRM_MSG
public static final String NOOP_MSG
public static final String RESULT_MSG
public String description()
description in interface Command<CacheDestroyCommandArg,Void>public boolean prepare(@Nullable
@Nullable GridClient cli,
@Nullable
@Nullable Ignite ignite,
CacheDestroyCommandArg arg,
Consumer<String> printer)
throws GridClientException
prepare in interface PreparableCommand<CacheDestroyCommandArg,Void>cli - Grid client to get required information from cluster.arg - Command argument.printer - Implementation specific printer.True if command must be executed, false otherwise.GridClientExceptionpublic String confirmationPrompt(CacheDestroyCommandArg arg)
confirmationPrompt in interface Command<CacheDestroyCommandArg,Void>arg - Command argument.null it means that confirmation is not needed.public void printResult(CacheDestroyCommandArg arg, Void res, Consumer<String> printer)
printResult in interface ComputeCommand<CacheDestroyCommandArg,Void>arg - Argument.res - Result.printer - Implementation specific printer.public Class<CacheDestroyCommandArg> argClass()
argClass in interface Command<CacheDestroyCommandArg,Void>public Class taskClass()
taskClass in interface ComputeCommand<CacheDestroyCommandArg,Void>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023