ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [24/32] incubator-ignite git commit: ignite-236 review
Date Fri, 13 Feb 2015 15:57:38 GMT
ignite-236 review


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

Branch: refs/heads/ignite-230
Commit: 526cb042c767fb41c819ec64aeb115d525df3e26
Parents: d56c440
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Fri Feb 13 15:30:13 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Fri Feb 13 15:30:13 2015 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/ClusterMetricsSnapshot.java  | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/526cb042/modules/core/src/main/java/org/apache/ignite/internal/ClusterMetricsSnapshot.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/ClusterMetricsSnapshot.java
b/modules/core/src/main/java/org/apache/ignite/internal/ClusterMetricsSnapshot.java
index 1007b7f..5b08116 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/ClusterMetricsSnapshot.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/ClusterMetricsSnapshot.java
@@ -1108,6 +1108,10 @@ public class ClusterMetricsSnapshot implements ClusterMetrics {
         this.outMesQueueSize = outMesQueueSize;
     }
 
+    /**
+     * @param neighborhood Cluster neighborhood.
+     * @return CPU count.
+     */
     private static int cpuCnt(Map<String, Collection<ClusterNode>> neighborhood)
{
         int cpus = 0;
 
@@ -1122,6 +1126,10 @@ public class ClusterMetricsSnapshot implements ClusterMetrics {
         return cpus;
     }
 
+    /**
+     * @param neighborhood Cluster neighborhood.
+     * @return CPU load.
+     */
     private static int cpus(Map<String, Collection<ClusterNode>> neighborhood)
{
         int cpus = 0;
 
@@ -1136,6 +1144,10 @@ public class ClusterMetricsSnapshot implements ClusterMetrics {
         return cpus;
     }
 
+    /**
+     * @param neighborhood Cluster neighborhood.
+     * @return GC CPU load.
+     */
     private static int gcCpus(Map<String, Collection<ClusterNode>> neighborhood)
{
         int cpus = 0;
 


Mime
View raw message