public class SystemViewCommand extends Object implements ComputeCommand<SystemViewCommandArg,SystemViewTaskResult>
| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_SEPARATOR
Column separator.
|
CMD_NAME_POSTFIX| Constructor and Description |
|---|
SystemViewCommand() |
| Modifier and Type | Method and Description |
|---|---|
Class<SystemViewCommandArg> |
argClass() |
String |
description()
Command description.
|
Collection<GridClientNode> |
nodes(Collection<GridClientNode> nodes,
SystemViewCommandArg arg) |
void |
printResult(SystemViewCommandArg arg,
SystemViewTaskResult res,
Consumer<String> printer)
Prints command result to the user.
|
static void |
printTable(List<String> titles,
List<SystemViewTask.SimpleType> types,
List<List<?>> data,
Consumer<String> printer)
Prints specified data rows as table.
|
Class<SystemViewTask> |
taskClass() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfirmationPrompt, deprecationMessagepublic static final String COLUMN_SEPARATOR
public String description()
description in interface Command<SystemViewCommandArg,SystemViewTaskResult>public Class<SystemViewCommandArg> argClass()
argClass in interface Command<SystemViewCommandArg,SystemViewTaskResult>public Class<SystemViewTask> taskClass()
taskClass in interface ComputeCommand<SystemViewCommandArg,SystemViewTaskResult>public Collection<GridClientNode> nodes(Collection<GridClientNode> nodes, SystemViewCommandArg arg)
nodes in interface ComputeCommand<SystemViewCommandArg,SystemViewTaskResult>nodes - Live nodes.arg - Argument.null means default node must be used.public void printResult(SystemViewCommandArg arg, SystemViewTaskResult res, Consumer<String> printer)
printResult in interface ComputeCommand<SystemViewCommandArg,SystemViewTaskResult>arg - Argument.res - Result.printer - Implementation specific printer.public static void printTable(List<String> titles, List<SystemViewTask.SimpleType> types, List<List<?>> data, Consumer<String> printer)
titles - Titles of the table columns.types - Types of the table columns.data - Table data rows.printer - Result printer.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023