sv2000 commented on a change in pull request #2891: [GOBBLIN-1051] Emit Helix 
Leader Metrics
URL: https://github.com/apache/incubator-gobblin/pull/2891#discussion_r380895014
 
 

 ##########
 File path: 
gobblin-service/src/main/java/org/apache/gobblin/service/modules/core/GobblinServiceManager.java
 ##########
 @@ -645,4 +678,21 @@ private static void 
testGobblinService(GobblinServiceManager gobblinServiceManag
       throw new RuntimeException(e);
     }
   }
+
+  @Setter
+  private static class HelixLeaderState {
+    private LeaderState state = LeaderState.UNKNOWN;
+  }
+
+  private enum LeaderState {
+    UNKNOWN(-1),
+    SLAVE(0),
+    MASTER(1);
+
+    public int value;
 
 Review comment:
   Annotate with @Getter?

----------------------------------------------------------------
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