public class CommandInvoker<A extends IgniteDataTransferObject> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected A |
arg
Parsed argument.
|
protected Command<A,?> |
cmd
Command to execute.
|
| Constructor and Description |
|---|
CommandInvoker(Command<A,?> cmd,
A arg,
@Nullable IgniteEx ignite) |
| Modifier and Type | Method and Description |
|---|---|
protected @Nullable GridClient |
client() |
protected GridClientNode |
defaultNode() |
<R> R |
invoke(Consumer<String> printer,
boolean verbose)
Actual command execution with verbose mode if required.
|
boolean |
prepare(Consumer<String> printer) |
protected final Command<A extends IgniteDataTransferObject,?> cmd
protected final A extends IgniteDataTransferObject arg
public boolean prepare(Consumer<String> printer) throws GridClientException
printer - Result printer.True of command successfully prepared and can be invoked, false otherwise.GridClientException - In failed.public <R> R invoke(Consumer<String> printer, boolean verbose) throws GridClientException
printer - Result printer.verbose - Use verbose mode or notGridClientException - In failed.protected GridClientNode defaultNode() throws GridClientException
GridClientException@Nullable protected @Nullable GridClient client() throws GridClientException
GridClientException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023