Class TxInfoCommand
- java.lang.Object
-
- org.apache.ignite.internal.management.tx.TxInfoCommand
-
- All Implemented Interfaces:
Command<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>,LocalCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>
public class TxInfoCommand extends Object implements LocalCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Constructor Summary
Constructors Constructor Description TxInfoCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<TxInfoCommandArg>argClass()Stringdescription()Command description.Map<ClusterNode,TxTaskResult>execute(@Nullable GridClient cli, @Nullable IgniteClient client, @Nullable Ignite ignite, TxCommand.AbstractTxCommandArg arg0, Consumer<String> printer)Executes command logic.-
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
confirmationPrompt, deprecationMessage
-
-
-
-
Method Detail
-
description
public String description()
Command description.- Specified by:
descriptionin interfaceCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>
-
argClass
public Class<TxInfoCommandArg> argClass()
- Specified by:
argClassin interfaceCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>- Returns:
- Arguments class.
-
execute
public Map<ClusterNode,TxTaskResult> execute(@Nullable @Nullable GridClient cli, @Nullable @Nullable IgniteClient client, @Nullable @Nullable Ignite ignite, TxCommand.AbstractTxCommandArg arg0, Consumer<String> printer) throws Exception
Executes command logic. Commands invoked in two different environments:- CLI utility using
GridClientconnection to interact with cluster. - Inside
Ignitenode therefore local node can be used to interact with cluster.
GridClientprotocol is obsolete and can be removed in future releases.- Specified by:
executein interfaceLocalCommand<TxCommand.AbstractTxCommandArg,Map<ClusterNode,TxTaskResult>>- Parameters:
cli- Optional grid client instance.ignite- Optional ignite node.arg0- Command argument.printer- Results printer.- Returns:
- Command result.
- Throws:
Exception
- CLI utility using
-
-