Class DeactivateCommand
- java.lang.Object
-
- org.apache.ignite.internal.management.DeactivateCommand
-
- All Implemented Interfaces:
Command<DeactivateCommandArg,NoArg>,LocalCommand<DeactivateCommandArg,NoArg>,PreparableCommand<DeactivateCommandArg,NoArg>
@Deprecated public class DeactivateCommand extends Object implements LocalCommand<DeactivateCommandArg,NoArg>, PreparableCommand<DeactivateCommandArg,NoArg>
Deprecated.
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Constructor Summary
Constructors Constructor Description DeactivateCommand()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Class<DeactivateCommandArg>argClass()Deprecated.StringconfirmationPrompt(DeactivateCommandArg arg)Deprecated.StringdeprecationMessage(DeactivateCommandArg arg)Deprecated.Stringdescription()Deprecated.Command description.NoArgexecute(@Nullable GridClient cli, @Nullable IgniteClient client, @Nullable Ignite ignite, DeactivateCommandArg arg, Consumer<String> printer)Deprecated.Executes command logic.booleanprepare(@Nullable GridClient cli, @Nullable IgniteClient client, @Nullable Ignite ignite, DeactivateCommandArg arg, Consumer<String> printer)Deprecated.Enriches argument with cluster information if required.
-
-
-
Method Detail
-
description
public String description()
Deprecated.Command description.- Specified by:
descriptionin interfaceCommand<DeactivateCommandArg,NoArg>
-
deprecationMessage
public String deprecationMessage(DeactivateCommandArg arg)
Deprecated.- Specified by:
deprecationMessagein interfaceCommand<DeactivateCommandArg,NoArg>- Parameters:
arg- Command argument.- Returns:
- Deprecation message if command on the way to being decomissioned.
-
confirmationPrompt
public String confirmationPrompt(DeactivateCommandArg arg)
Deprecated.- Specified by:
confirmationPromptin interfaceCommand<DeactivateCommandArg,NoArg>- Parameters:
arg- Command argument.- Returns:
- Message text to show user for. If
nullit means that confirmation is not needed.
-
execute
public NoArg execute(@Nullable @Nullable GridClient cli, @Nullable @Nullable IgniteClient client, @Nullable @Nullable Ignite ignite, DeactivateCommandArg arg, Consumer<String> printer) throws GridClientException
Deprecated.Executes command logic. Commands invoked in two different environments:- CLI utility using
GridClientconnection to interact with cluster. - Inside
Ignitenode therefore local node can be used to interact with cluster.
GridClientprotocol is obsolete and can be removed in future releases.- Specified by:
executein interfaceLocalCommand<DeactivateCommandArg,NoArg>- Parameters:
cli- Optional grid client instance.ignite- Optional ignite node.arg- Command argument.printer- Results printer.- Returns:
- Command result.
- Throws:
GridClientException
- CLI utility using
-
argClass
public Class<DeactivateCommandArg> argClass()
Deprecated.- Specified by:
argClassin interfaceCommand<DeactivateCommandArg,NoArg>- Returns:
- Arguments class.
-
prepare
public boolean prepare(@Nullable @Nullable GridClient cli, @Nullable @Nullable IgniteClient client, @Nullable @Nullable Ignite ignite, DeactivateCommandArg arg, Consumer<String> printer) throws ExceptionDeprecated.Enriches argument with cluster information if required.- Specified by:
preparein interfacePreparableCommand<DeactivateCommandArg,NoArg>- 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
-
-