Class PersistenceAbstractCommand
- java.lang.Object
-
- org.apache.ignite.internal.management.persistence.PersistenceAbstractCommand
-
- All Implemented Interfaces:
Command<PersistenceCommand.PersistenceTaskArg,PersistenceTaskResult>,ComputeCommand<PersistenceCommand.PersistenceTaskArg,PersistenceTaskResult>
- Direct Known Subclasses:
PersistenceBackupAllCommand,PersistenceBackupCachesCommand,PersistenceBackupCorruptedCommand,PersistenceCleanAllCommand,PersistenceCleanCachesCommand,PersistenceCleanCorruptedCommand,PersistenceInfoCommand
public abstract class PersistenceAbstractCommand extends Object implements ComputeCommand<PersistenceCommand.PersistenceTaskArg,PersistenceTaskResult>
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Constructor Summary
Constructors Constructor Description PersistenceAbstractCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprintResult(PersistenceCommand.PersistenceTaskArg arg, PersistenceTaskResult res, Consumer<String> printer)Prints command result to the user.Class<PersistenceTask>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
argClass, confirmationPrompt, deprecationMessage, description
-
Methods inherited from interface org.apache.ignite.internal.management.api.ComputeCommand
handleException, nodes
-
-
-
-
Method Detail
-
taskClass
public Class<PersistenceTask> taskClass()
- Specified by:
taskClassin interfaceComputeCommand<PersistenceCommand.PersistenceTaskArg,PersistenceTaskResult>- Returns:
- Task class.
-
printResult
public void printResult(PersistenceCommand.PersistenceTaskArg arg, PersistenceTaskResult res, Consumer<String> printer)
Prints command result to the user.- Specified by:
printResultin interfaceComputeCommand<PersistenceCommand.PersistenceTaskArg,PersistenceTaskResult>- Parameters:
arg- Argument.res- Result.printer- Implementation specific printer.
-
-