Class DiagnosticPagelocksCommand
- java.lang.Object
-
- org.apache.ignite.internal.management.diagnostic.DiagnosticPagelocksCommand
-
- All Implemented Interfaces:
Command<DiagnosticPagelocksCommandArg,Map<ClusterNode,PageLocksResult>>,ComputeCommand<DiagnosticPagelocksCommandArg,Map<ClusterNode,PageLocksResult>>
public class DiagnosticPagelocksCommand extends Object implements ComputeCommand<DiagnosticPagelocksCommandArg,Map<ClusterNode,PageLocksResult>>
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.management.api.Command
CMD_NAME_POSTFIX
-
-
Constructor Summary
Constructors Constructor Description DiagnosticPagelocksCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<DiagnosticPagelocksCommandArg>argClass()Stringdescription()Command description.Collection<GridClientNode>nodes(Collection<GridClientNode> nodes, DiagnosticPagelocksCommandArg arg)voidprintResult(DiagnosticPagelocksCommandArg arg, Map<ClusterNode,PageLocksResult> res, Consumer<String> printer)Prints command result to the user.Class<PageLocksTask>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
-
-
-
-
Method Detail
-
description
public String description()
Command description.- Specified by:
descriptionin interfaceCommand<DiagnosticPagelocksCommandArg,Map<ClusterNode,PageLocksResult>>
-
argClass
public Class<DiagnosticPagelocksCommandArg> argClass()
- Specified by:
argClassin interfaceCommand<DiagnosticPagelocksCommandArg,Map<ClusterNode,PageLocksResult>>- Returns:
- Arguments class.
-
taskClass
public Class<PageLocksTask> taskClass()
- Specified by:
taskClassin interfaceComputeCommand<DiagnosticPagelocksCommandArg,Map<ClusterNode,PageLocksResult>>- Returns:
- Task class.
-
nodes
public Collection<GridClientNode> nodes(Collection<GridClientNode> nodes, DiagnosticPagelocksCommandArg arg)
- Specified by:
nodesin interfaceComputeCommand<DiagnosticPagelocksCommandArg,Map<ClusterNode,PageLocksResult>>- Parameters:
nodes- Live nodes.arg- Argument.- Returns:
- nodes to execute command on,
nullmeans default node must be used.
-
printResult
public void printResult(DiagnosticPagelocksCommandArg arg, Map<ClusterNode,PageLocksResult> res, Consumer<String> printer)
Prints command result to the user.- Specified by:
printResultin interfaceComputeCommand<DiagnosticPagelocksCommandArg,Map<ClusterNode,PageLocksResult>>- Parameters:
arg- Argument.res- Result.printer- Implementation specific printer.
-
-