Interface PreparableCommand<A extends IgniteDataTransferObject,​R>

    • Method Detail

      • prepare

        boolean prepare​(@Nullable
                        @Nullable GridClient cli,
                        @Nullable
                        @Nullable IgniteClient client,
                        @Nullable
                        @Nullable Ignite ignite,
                        A arg,
                        Consumer<String> printer)
                 throws Exception
        Enriches argument with cluster information if required.
        Parameters:
        cli - Grid client to get required information from cluster.
        arg - Command argument.
        printer - Implementation specific printer.
        Returns:
        True if command must be executed, false otherwise.
        Throws:
        Exception