IGNITE-1069 Added output of node type (server or client) in Visor commandline for node command. - Fixes #442.
Signed-off-by: AKuznetsov <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/58dce88b Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/58dce88b Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/58dce88b Branch: refs/heads/sql-store Commit: 58dce88b8dd0762c413850af2dfeadbdd22c519f Parents: c3b83fe Author: kcheng <[email protected]> Authored: Mon Feb 1 20:31:34 2016 +0700 Committer: AKuznetsov <[email protected]> Committed: Mon Feb 1 20:31:34 2016 +0700 ---------------------------------------------------------------------- .../org/apache/ignite/visor/commands/node/VisorNodeCommand.scala | 1 + .../src/main/scala/org/apache/ignite/visor/visor.scala | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/58dce88b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/node/VisorNodeCommand.scala ---------------------------------------------------------------------- diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/node/VisorNodeCommand.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/node/VisorNodeCommand.scala index f4a1f87..9ba0129 100644 --- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/node/VisorNodeCommand.scala +++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/node/VisorNodeCommand.scala @@ -157,6 +157,7 @@ class VisorNodeCommand extends VisorConsoleCommand { t += ("ID", node.id) t += ("ID8", nid8(node)) + t += ("Node Type", if (node.isClient) "Client" else "Server") t += ("Order", node.order) (0 /: sortAddresses(node.addresses))((b, a) => { t += ("Address (" + b + ")", a); b + 1 }) http://git-wip-us.apache.org/repos/asf/ignite/blob/58dce88b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala ---------------------------------------------------------------------- diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala index 986089b..a4eed69 100644 --- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala +++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala @@ -1800,7 +1800,7 @@ object visor extends VisorTag { val t = VisorTextTable() - t #= ("#", "Node ID8(@), IP", "Up Time", "CPUs", "CPU Load", "Free Heap") + t #= ("#", "Node ID8(@), IP","Node Type", "Up Time", "CPUs", "CPU Load", "Free Heap") val nodes = ignite.cluster.nodes().toList @@ -1826,6 +1826,7 @@ object visor extends VisorTag { t += ( i, nodeId8Addr(n.id), + if (n.isClient) "Client" else "Server", X.timeSpan2HMS(m.getUpTime), n.metrics.getTotalCpus, safePercent(cpuLoadPct),
