ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject [24/47] incubator-ignite git commit: ignite-754: added missing comments
Date Fri, 17 Apr 2015 16:06:46 GMT
ignite-754: added missing comments


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

Branch: refs/heads/ignite-485
Commit: 0071386d359fb92af8f4b0cc3d00b537184999a6
Parents: bee6ac8
Author: Denis Magda <dmagda@gridgain.com>
Authored: Thu Apr 16 14:39:28 2015 +0300
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Thu Apr 16 14:39:28 2015 +0300

----------------------------------------------------------------------
 .../internal/managers/discovery/GridDiscoveryManager.java    | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0071386d/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
index 7b6edc2..ff41952 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
@@ -791,6 +791,13 @@ public class GridDiscoveryManager extends GridManagerAdapter<DiscoverySpi>
{
             log.debug("Finished node attributes consistency check.");
     }
 
+    /**
+     * Gets Java major version running on the node.
+     *
+     * @param node Cluster node.
+     * @return Java major version.
+     * @throws IgniteCheckedException If failed to get the version.
+     */
     private int nodeJavaMajorVer(ClusterNode node) throws IgniteCheckedException {
         try {
             return Integer.parseInt(node.<String>attribute("java.version").split(".")[1]);
@@ -799,6 +806,7 @@ public class GridDiscoveryManager extends GridManagerAdapter<DiscoverySpi>
{
             throw new IgniteCheckedException("Failed to get java major version with reason:
" + e.getMessage());
         }
     }
+
     /**
      * @param nodes Nodes.
      * @return Total CPUs.


Mime
View raw message