Class CommandInvoker<A extends IgniteDataTransferObject>

    • Constructor Detail

      • CommandInvoker

        public CommandInvoker​(Command<A,​?> cmd,
                              A arg,
                              @Nullable
                              @Nullable IgniteEx ignite)
        Parameters:
        cmd - Command to execute.
        arg - Argument
        ignite - Optional ignite instance.
    • Method Detail

      • invoke

        public <R> R invoke​(Consumer<String> printer,
                            boolean verbose)
                     throws Exception
        Actual command execution with verbose mode if required.
        Parameters:
        printer - Result printer.
        verbose - Use verbose mode or not
        Returns:
        Result of operation (mostly usable for tests).
        Throws:
        Exception - If failed.
      • igniteClient

        @Nullable
        protected @Nullable IgniteClient igniteClient()
        Returns:
        Ignite client instance.