ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [01/34] incubator-ignite git commit: # ignite-816 Visor console: select node in case one node.
Date Tue, 26 May 2015 10:11:32 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-37 b445ac596 -> 956987900 (forced update)


# ignite-816 Visor console: select node in case one node.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/882b6aa8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/882b6aa8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/882b6aa8

Branch: refs/heads/ignite-37
Commit: 882b6aa81e82848f86461092e4a2e117a6772abd
Parents: 81ce0e6
Author: Andrey <anovikov@gridgain.com>
Authored: Thu Apr 30 11:29:40 2015 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Thu Apr 30 11:29:40 2015 +0700

----------------------------------------------------------------------
 .../src/main/scala/org/apache/ignite/visor/visor.scala             | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/882b6aa8/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 356c80a..f3aa87d 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
@@ -2012,6 +2012,8 @@ object visor extends VisorTag {
 
             None
         }
+        else if (nodes.size == 1)
+            Some(nodes.head.id)
         else {
             (0 until nodes.size) foreach (i => {
                 val n = nodes(i)


Mime
View raw message