vinothchandar commented on a change in pull request #1106: [HUDI-209] Implement 
JMX metrics reporter
URL: https://github.com/apache/incubator-hudi/pull/1106#discussion_r376895998
 
 

 ##########
 File path: 
hudi-client/src/main/java/org/apache/hudi/metrics/JmxMetricsReporter.java
 ##########
 @@ -82,6 +102,106 @@ public void report() {
 
   @Override
   public Closeable getReporter() {
-    return null;
+    return jmxServer.getReporter();
+  }
+
+  @Override
+  public void stop() {
+    if (jmxServer != null) {
+      try {
+        jmxServer.stop();
+      } catch (IOException e) {
+        LOG.error("Failed to stop JMX server.", e);
+      }
+    }
+  }
+
+  /**
+   * JMX Server implementation that JMX clients can connect to.
+   *
+   * <p>Heavily based on j256 simplejmx project
 
 Review comment:
   apache and MIT are what we can clear easily. others need more scrutiny. Can 
we re-implement this ourselves please? 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to