Class TxCommand
- java.lang.Object
-
- org.apache.ignite.internal.management.api.CommandRegistryImpl<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>
-
- org.apache.ignite.internal.management.tx.TxCommand
-
- All Implemented Interfaces:
Command<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>,CommandsRegistry<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>,ComputeCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>
public class TxCommand extends CommandRegistryImpl<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>> implements ComputeCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTxCommand.AbstractTxCommandArg
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Constructor Summary
Constructors Constructor Description TxCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<TxCommandArg>argClass()StringconfirmationPrompt(TxCommand.AbstractTxCommandArg arg)Stringdescription()Command description.voidprintResult(TxCommand.AbstractTxCommandArg arg0, Map<ClusterNode,TxTaskResult> res, Consumer<String> printer)Prints command result to the user.Class<TxTask>taskClass()-
Methods inherited from class org.apache.ignite.internal.management.api.CommandRegistryImpl
command, commands, register
-
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<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>- Specified by:
descriptionin interfaceCommandsRegistry<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>
-
argClass
public Class<TxCommandArg> argClass()
- Specified by:
argClassin interfaceCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>- Specified by:
argClassin interfaceCommandsRegistry<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>- Returns:
- Arguments class.
-
taskClass
public Class<TxTask> taskClass()
- Specified by:
taskClassin interfaceComputeCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>- Returns:
- Task class.
-
printResult
public void printResult(TxCommand.AbstractTxCommandArg arg0, Map<ClusterNode,TxTaskResult> res, Consumer<String> printer)
Prints command result to the user.- Specified by:
printResultin interfaceComputeCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>- Parameters:
arg0- Argument.res- Result.printer- Implementation specific printer.
-
confirmationPrompt
public String confirmationPrompt(TxCommand.AbstractTxCommandArg arg)
- Specified by:
confirmationPromptin interfaceCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>- Parameters:
arg- Command argument.- Returns:
- Message text to show user for. If
nullit means that confirmation is not needed.
-
-