Class CdcDeleteLostSegmentLinksCommand
- java.lang.Object
-
- org.apache.ignite.internal.management.cdc.CdcDeleteLostSegmentLinksCommand
-
- All Implemented Interfaces:
Command<CdcDeleteLostSegmentLinksCommandArg,Void>,ComputeCommand<CdcDeleteLostSegmentLinksCommandArg,Void>
public class CdcDeleteLostSegmentLinksCommand extends Object implements ComputeCommand<CdcDeleteLostSegmentLinksCommandArg,Void>
Command to delete lost segment links.
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Constructor Summary
Constructors Constructor Description CdcDeleteLostSegmentLinksCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<CdcDeleteLostSegmentLinksCommandArg>argClass()StringconfirmationPrompt(CdcDeleteLostSegmentLinksCommandArg arg)Stringdescription()Command description.Collection<GridClientNode>nodes(Collection<GridClientNode> nodes, CdcDeleteLostSegmentLinksCommandArg arg)voidprintResult(CdcDeleteLostSegmentLinksCommandArg arg, Void res, Consumer<String> printer)Prints command result to the user.Class<CdcDeleteLostSegmentsTask>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
-
-
-
-
Method Detail
-
description
public String description()
Command description.- Specified by:
descriptionin interfaceCommand<CdcDeleteLostSegmentLinksCommandArg,Void>
-
argClass
public Class<CdcDeleteLostSegmentLinksCommandArg> argClass()
- Specified by:
argClassin interfaceCommand<CdcDeleteLostSegmentLinksCommandArg,Void>- Returns:
- Arguments class.
-
taskClass
public Class<CdcDeleteLostSegmentsTask> taskClass()
- Specified by:
taskClassin interfaceComputeCommand<CdcDeleteLostSegmentLinksCommandArg,Void>- Returns:
- Task class.
-
nodes
public Collection<GridClientNode> nodes(Collection<GridClientNode> nodes, CdcDeleteLostSegmentLinksCommandArg arg)
- Specified by:
nodesin interfaceComputeCommand<CdcDeleteLostSegmentLinksCommandArg,Void>- Parameters:
nodes- Live nodes.arg- Argument.- Returns:
- nodes to execute command on,
nullmeans default node must be used.
-
printResult
public void printResult(CdcDeleteLostSegmentLinksCommandArg arg, Void res, Consumer<String> printer)
Prints command result to the user.- Specified by:
printResultin interfaceComputeCommand<CdcDeleteLostSegmentLinksCommandArg,Void>- Parameters:
arg- Argument.res- Result.printer- Implementation specific printer.
-
confirmationPrompt
public String confirmationPrompt(CdcDeleteLostSegmentLinksCommandArg arg)
- Specified by:
confirmationPromptin interfaceCommand<CdcDeleteLostSegmentLinksCommandArg,Void>- Parameters:
arg- Command argument.- Returns:
- Message text to show user for. If
nullit means that confirmation is not needed.
-
-