Class CacheIndexesForceRebuildCommand
- java.lang.Object
-
- org.apache.ignite.internal.management.cache.CacheIndexesForceRebuildCommand
-
- All Implemented Interfaces:
Command<CacheIndexesForceRebuildCommandArg,Map<UUID,IndexForceRebuildTaskRes>>,ComputeCommand<CacheIndexesForceRebuildCommandArg,Map<UUID,IndexForceRebuildTaskRes>>
public class CacheIndexesForceRebuildCommand extends Object implements ComputeCommand<CacheIndexesForceRebuildCommandArg,Map<UUID,IndexForceRebuildTaskRes>>
Index force rebuild.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPREF_CACHES_NOT_FOUNDstatic StringPREF_GROUPS_NOT_FOUNDstatic StringPREF_REBUILD_NOT_STARTEDstatic StringPREF_REBUILD_NOT_STARTED_SINGLEstatic StringPREF_REBUILD_STARTEDstatic StringPREF_REBUILDINGstatic StringPREF_SCHEDULED-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Constructor Summary
Constructors Constructor Description CacheIndexesForceRebuildCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<CacheIndexesForceRebuildCommandArg>argClass()Stringdescription()Command description.Collection<GridClientNode>nodes(Collection<GridClientNode> nodes, CacheIndexesForceRebuildCommandArg arg)voidprintResult(CacheIndexesForceRebuildCommandArg arg, Map<UUID,IndexForceRebuildTaskRes> results, Consumer<String> printer)Prints command result to the user.Class<IndexForceRebuildTask>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_REBUILDING
public static final String PREF_REBUILDING
- See Also:
- Constant Field Values
-
PREF_CACHES_NOT_FOUND
public static final String PREF_CACHES_NOT_FOUND
- See Also:
- Constant Field Values
-
PREF_GROUPS_NOT_FOUND
public static final String PREF_GROUPS_NOT_FOUND
- See Also:
- Constant Field Values
-
PREF_REBUILD_STARTED
public static final String PREF_REBUILD_STARTED
- See Also:
- Constant Field Values
-
PREF_REBUILD_NOT_STARTED_SINGLE
public static final String PREF_REBUILD_NOT_STARTED_SINGLE
- See Also:
- Constant Field Values
-
PREF_REBUILD_NOT_STARTED
public static final String PREF_REBUILD_NOT_STARTED
- See Also:
- Constant Field Values
-
PREF_SCHEDULED
public static final String PREF_SCHEDULED
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public String description()
Command description.- Specified by:
descriptionin interfaceCommand<CacheIndexesForceRebuildCommandArg,Map<UUID,IndexForceRebuildTaskRes>>
-
argClass
public Class<CacheIndexesForceRebuildCommandArg> argClass()
- Specified by:
argClassin interfaceCommand<CacheIndexesForceRebuildCommandArg,Map<UUID,IndexForceRebuildTaskRes>>- Returns:
- Arguments class.
-
taskClass
public Class<IndexForceRebuildTask> taskClass()
- Specified by:
taskClassin interfaceComputeCommand<CacheIndexesForceRebuildCommandArg,Map<UUID,IndexForceRebuildTaskRes>>- Returns:
- Task class.
-
nodes
public Collection<GridClientNode> nodes(Collection<GridClientNode> nodes, CacheIndexesForceRebuildCommandArg arg)
- Specified by:
nodesin interfaceComputeCommand<CacheIndexesForceRebuildCommandArg,Map<UUID,IndexForceRebuildTaskRes>>- Parameters:
nodes- Live nodes.arg- Argument.- Returns:
- nodes to execute command on,
nullmeans default node must be used.
-
printResult
public void printResult(CacheIndexesForceRebuildCommandArg arg, Map<UUID,IndexForceRebuildTaskRes> results, Consumer<String> printer)
Prints command result to the user.- Specified by:
printResultin interfaceComputeCommand<CacheIndexesForceRebuildCommandArg,Map<UUID,IndexForceRebuildTaskRes>>- Parameters:
arg- Argument.results- Result.printer- Implementation specific printer.
-
-