Interface LocalCommand<A extends IgniteDataTransferObject,R>
-
- All Superinterfaces:
Command<A,R>
- All Known Implementing Classes:
ActivateCommand,CacheListCommand,ConsistencyRepairCommand,DeactivateCommand,SetStateCommand,StateCommand,TxInfoCommand
public interface LocalCommand<A extends IgniteDataTransferObject,R> extends Command<A,R>
Command that must be executed directly usingGridClientorIgniteinstance.
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rexecute(@Nullable GridClient cli, @Nullable IgniteClient client, @Nullable Ignite ignite, A arg, Consumer<String> printer)Executes command logic.-
Methods inherited from interface org.apache.ignite.internal.management.api.Command
argClass, confirmationPrompt, deprecationMessage, description
-
-
-
-
Method Detail
-
execute
R execute(@Nullable @Nullable GridClient cli, @Nullable @Nullable IgniteClient client, @Nullable @Nullable Ignite ignite, A arg, 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.- Parameters:
cli- Optional grid client instance.ignite- Optional ignite node.arg- Command argument.printer- Results printer.- Returns:
- Command result.
- Throws:
Exception
- CLI utility using
-
-