huizhilu commented on a change in pull request #1740:
URL: https://github.com/apache/helix/pull/1740#discussion_r633040606



##########
File path: helix-core/src/main/java/org/apache/helix/model/LiveInstance.java
##########
@@ -40,7 +40,20 @@
     LIVE_INSTANCE,
     ZKPROPERTYTRANSFERURL,
     RESOURCE_CAPACITY,
-    CURRENT_TASK_THREAD_POOL_SIZE
+    CURRENT_TASK_THREAD_POOL_SIZE,
+
+    /** Represents {@link LiveInstanceStatus} */
+    STATUS
+  }
+
+  /**
+   * Represents status of a live instance, eg. PAUSED.
+   */
+  public enum LiveInstanceStatus {
+    NORMAL,
+    PAUSED,
+    ENTERING_PAUSE,
+    EXITING_PAUSE

Review comment:
       Yes it could be derived. But do we want to hard code those status in the 
API? I thought about it. I think it's cleaner to define the status here in live 
instance, which could be used for controller and participant.
   When exiting pause, once controller receives the exit notification, the 
controller status will marked as "EXITING_PAUSE" in LEADER.
   So I think this enum will help.
   




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to