Interface LocalCommand<A extends IgniteDataTransferObject,​R>

    • 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 GridClient connection to interact with cluster.
        • Inside Ignite node therefore local node can be used to interact with cluster.
        Please, keep in mind that GridClient protocol 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