public class SetStateCommand extends Object implements LocalCommand<SetStateCommandArg,Boolean>
CMD_NAME_POSTFIX| Constructor and Description |
|---|
SetStateCommand() |
| Modifier and Type | Method and Description |
|---|---|
Class<SetStateCommandArg> |
argClass() |
String |
confirmationPrompt(SetStateCommandArg arg) |
String |
description()
Command description.
|
Boolean |
execute(@Nullable GridClient cli,
@Nullable Ignite ignite,
SetStateCommandArg arg,
Consumer<String> printer)
Executes command logic.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeprecationMessagepublic String description()
description in interface Command<SetStateCommandArg,Boolean>public Class<SetStateCommandArg> argClass()
argClass in interface Command<SetStateCommandArg,Boolean>public Boolean execute(@Nullable @Nullable GridClient cli, @Nullable @Nullable Ignite ignite, SetStateCommandArg arg, Consumer<String> printer) throws GridClientException
GridClient connection to interact with cluster.Ignite node therefore local node can be used to interact with cluster.GridClient protocol is obsolete and can be removed in future releases.execute in interface LocalCommand<SetStateCommandArg,Boolean>cli - Optional grid client instance.ignite - Optional ignite node.arg - Command argument.printer - Results printer.GridClientExceptionpublic String confirmationPrompt(SetStateCommandArg arg)
confirmationPrompt in interface Command<SetStateCommandArg,Boolean>arg - Command argument.null it means that confirmation is not needed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023