Interface PreparableCommand<A extends IgniteDataTransferObject,R>
-
- All Superinterfaces:
Command<A,R>
- All Known Implementing Classes:
CacheDestroyCommand,DeactivateCommand
public interface PreparableCommand<A extends IgniteDataTransferObject,R> extends Command<A,R>
-
-
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 booleanprepare(@Nullable GridClient cli, @Nullable IgniteClient client, @Nullable Ignite ignite, A arg, Consumer<String> printer)Enriches argument with cluster information if required.-
Methods inherited from interface org.apache.ignite.internal.management.api.Command
argClass, confirmationPrompt, deprecationMessage, description
-
-
-
-
Method Detail
-
prepare
boolean prepare(@Nullable @Nullable GridClient cli, @Nullable @Nullable IgniteClient client, @Nullable @Nullable Ignite ignite, A arg, Consumer<String> printer) throws ExceptionEnriches argument with cluster information if required.- Parameters:
cli- Grid client to get required information from cluster.arg- Command argument.printer- Implementation specific printer.- Returns:
Trueif command must be executed,falseotherwise.- Throws:
Exception
-
-