Class ChangeTagCommand
- java.lang.Object
-
- org.apache.ignite.internal.management.ChangeTagCommand
-
- All Implemented Interfaces:
Command<ChangeTagCommandArg,ClusterChangeTagTaskResult>,ComputeCommand<ChangeTagCommandArg,ClusterChangeTagTaskResult>
public class ChangeTagCommand extends Object implements ComputeCommand<ChangeTagCommandArg,ClusterChangeTagTaskResult>
Change Cluster tag command.
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Constructor Summary
Constructors Constructor Description ChangeTagCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<ChangeTagCommandArg>argClass()StringconfirmationPrompt(ChangeTagCommandArg arg)Stringdescription()Command description.voidprintResult(ChangeTagCommandArg arg, ClusterChangeTagTaskResult res, Consumer<String> printer)Prints command result to the user.Class<ClusterChangeTagTask>taskClass()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.management.api.Command
deprecationMessage
-
Methods inherited from interface org.apache.ignite.internal.management.api.ComputeCommand
handleException, nodes
-
-
-
-
Method Detail
-
description
public String description()
Command description.- Specified by:
descriptionin interfaceCommand<ChangeTagCommandArg,ClusterChangeTagTaskResult>
-
argClass
public Class<ChangeTagCommandArg> argClass()
- Specified by:
argClassin interfaceCommand<ChangeTagCommandArg,ClusterChangeTagTaskResult>- Returns:
- Arguments class.
-
taskClass
public Class<ClusterChangeTagTask> taskClass()
- Specified by:
taskClassin interfaceComputeCommand<ChangeTagCommandArg,ClusterChangeTagTaskResult>- Returns:
- Task class.
-
printResult
public void printResult(ChangeTagCommandArg arg, ClusterChangeTagTaskResult res, Consumer<String> printer)
Prints command result to the user.- Specified by:
printResultin interfaceComputeCommand<ChangeTagCommandArg,ClusterChangeTagTaskResult>- Parameters:
arg- Argument.res- Result.printer- Implementation specific printer.
-
confirmationPrompt
public String confirmationPrompt(ChangeTagCommandArg arg)
- Specified by:
confirmationPromptin interfaceCommand<ChangeTagCommandArg,ClusterChangeTagTaskResult>- Parameters:
arg- Command argument.- Returns:
- Message text to show user for. If
nullit means that confirmation is not needed.
-
-