You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2019/06/28 15:47:35 UTC

[GitHub] [ignite] nizhikov commented on a change in pull request #6638: IGNITE-11941: VM metrics moved to GridMetricManager.

nizhikov commented on a change in pull request #6638:  IGNITE-11941: VM metrics moved to GridMetricManager.
URL: https://github.com/apache/ignite/pull/6638#discussion_r298650415
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/ClusterMetricsImpl.java
 ##########
 @@ -270,27 +409,27 @@ public ClusterMetricsImpl(GridKernalContext ctx, GridLocalMetrics vmMetrics, lon
 
     /** {@inheritDoc} */
     @Override public long getNonHeapMemoryCommitted() {
-        return vmMetrics.getNonHeapMemoryCommitted();
+        return nonHeapCommitted.value();
     }
 
     /** {@inheritDoc} */
     @Override public long getNonHeapMemoryMaximum() {
-        return vmMetrics.getNonHeapMemoryMaximum();
+        return nonHeapMax.value();
     }
 
     /** {@inheritDoc} */
     @Override public long getNonHeapMemoryTotal() {
-        return vmMetrics.getNonHeapMemoryMaximum();
+        return nonHeapMax.value();
     }
 
     /** {@inheritDoc} */
     @Override public long getUpTime() {
-        return vmMetrics.getUptime();
+        return upTime.value();
     }
 
     /** {@inheritDoc} */
     @Override public long getStartTime() {
-        return vmMetrics.getStartTime();
+        return rt.getStartTime();
 
 Review comment:
   `startTime` is a constant that can be derived from `upTime` so we don't need it in `MetricRegistry`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services