Class CacheScheduleIndexesRebuildCommand
- java.lang.Object
-
- org.apache.ignite.internal.management.cache.CacheScheduleIndexesRebuildCommand
-
- All Implemented Interfaces:
Command<CacheScheduleIndexesRebuildCommandArg,ScheduleIndexRebuildTaskRes>,ComputeCommand<CacheScheduleIndexesRebuildCommandArg,ScheduleIndexRebuildTaskRes>
public class CacheScheduleIndexesRebuildCommand extends Object implements ComputeCommand<CacheScheduleIndexesRebuildCommandArg,ScheduleIndexRebuildTaskRes>
Index rebuild via the maintenance mode.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPREF_INDEXES_NOT_FOUNDstatic StringPREF_REBUILD_NOT_SCHEDULEDstatic StringPREF_REBUILD_NOT_SCHEDULED_MULTI-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Constructor Summary
Constructors Constructor Description CacheScheduleIndexesRebuildCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<CacheScheduleIndexesRebuildCommandArg>argClass()Stringdescription()Command description.Collection<GridClientNode>nodes(Collection<GridClientNode> nodes, CacheScheduleIndexesRebuildCommandArg arg)voidprintResult(CacheScheduleIndexesRebuildCommandArg arg, ScheduleIndexRebuildTaskRes results, Consumer<String> printer)Prints command result to the user.Class<ScheduleIndexRebuildTask>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
confirmationPrompt, deprecationMessage
-
Methods inherited from interface org.apache.ignite.internal.management.api.ComputeCommand
handleException
-
-
-
-
Field Detail
-
PREF_INDEXES_NOT_FOUND
public static final String PREF_INDEXES_NOT_FOUND
- See Also:
- Constant Field Values
-
PREF_REBUILD_NOT_SCHEDULED
public static final String PREF_REBUILD_NOT_SCHEDULED
- See Also:
- Constant Field Values
-
PREF_REBUILD_NOT_SCHEDULED_MULTI
public static final String PREF_REBUILD_NOT_SCHEDULED_MULTI
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public String description()
Command description.- Specified by:
descriptionin interfaceCommand<CacheScheduleIndexesRebuildCommandArg,ScheduleIndexRebuildTaskRes>
-
argClass
public Class<CacheScheduleIndexesRebuildCommandArg> argClass()
- Specified by:
argClassin interfaceCommand<CacheScheduleIndexesRebuildCommandArg,ScheduleIndexRebuildTaskRes>- Returns:
- Arguments class.
-
taskClass
public Class<ScheduleIndexRebuildTask> taskClass()
- Specified by:
taskClassin interfaceComputeCommand<CacheScheduleIndexesRebuildCommandArg,ScheduleIndexRebuildTaskRes>- Returns:
- Task class.
-
nodes
public Collection<GridClientNode> nodes(Collection<GridClientNode> nodes, CacheScheduleIndexesRebuildCommandArg arg)
- Specified by:
nodesin interfaceComputeCommand<CacheScheduleIndexesRebuildCommandArg,ScheduleIndexRebuildTaskRes>- Parameters:
nodes- Live nodes.arg- Argument.- Returns:
- nodes to execute command on,
nullmeans default node must be used.
-
printResult
public void printResult(CacheScheduleIndexesRebuildCommandArg arg, ScheduleIndexRebuildTaskRes results, Consumer<String> printer)
Prints command result to the user.- Specified by:
printResultin interfaceComputeCommand<CacheScheduleIndexesRebuildCommandArg,ScheduleIndexRebuildTaskRes>- Parameters:
arg- Argument.results- Result.printer- Implementation specific printer.
-
-