Class WalDeleteCommand
- java.lang.Object
-
- org.apache.ignite.internal.management.wal.WalDeleteCommand
-
- All Implemented Interfaces:
Command<WalDeleteCommandArg,WalTaskResult>,ComputeCommand<WalDeleteCommandArg,WalTaskResult>
public class WalDeleteCommand extends Object implements ComputeCommand<WalDeleteCommandArg,WalTaskResult>
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Constructor Summary
Constructors Constructor Description WalDeleteCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<WalDeleteCommandArg>argClass()StringconfirmationPrompt(WalDeleteCommandArg arg)Stringdescription()Command description.voidprintResult(WalDeleteCommandArg arg, WalTaskResult taskRes, Consumer<String> printer)Prints command result to the user.Class<WalTask>taskClass()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.management.api.Command
deprecationMessage
-
Methods inherited from interface org.apache.ignite.internal.management.api.ComputeCommand
handleException, nodes
-
-
-
-
Method Detail
-
description
public String description()
Command description.- Specified by:
descriptionin interfaceCommand<WalDeleteCommandArg,WalTaskResult>
-
argClass
public Class<WalDeleteCommandArg> argClass()
- Specified by:
argClassin interfaceCommand<WalDeleteCommandArg,WalTaskResult>- Returns:
- Arguments class.
-
taskClass
public Class<WalTask> taskClass()
- Specified by:
taskClassin interfaceComputeCommand<WalDeleteCommandArg,WalTaskResult>- Returns:
- Task class.
-
confirmationPrompt
public String confirmationPrompt(WalDeleteCommandArg arg)
- Specified by:
confirmationPromptin interfaceCommand<WalDeleteCommandArg,WalTaskResult>- Parameters:
arg- Command argument.- Returns:
- Message text to show user for. If
nullit means that confirmation is not needed.
-
printResult
public void printResult(WalDeleteCommandArg arg, WalTaskResult taskRes, Consumer<String> printer)
Prints command result to the user.- Specified by:
printResultin interfaceComputeCommand<WalDeleteCommandArg,WalTaskResult>- Parameters:
arg- Argument.taskRes- Result.printer- Implementation specific printer.
-
-