Interface SupervisorStateManager.State
- All Known Implementing Classes:
SupervisorStateManager.BasicState
- Enclosing class:
- SupervisorStateManager
public static interface SupervisorStateManager.State
-
Method Summary
Modifier and TypeMethodDescriptiondefault SupervisorStateManager.StatebooleanIt may be helpful to provide more detailed state information (e.g.booleanIf we are in this state, is the supervisor healthy or unhealthy?
-
Method Details
-
isHealthy
boolean isHealthy()If we are in this state, is the supervisor healthy or unhealthy? -
isFirstRunOnly
boolean isFirstRunOnly()It may be helpful to provide more detailed state information (e.g. CONNECTING_TO_STREAM, CREATING_TASKS, etc.) during the first run of the supervisor so that if the supervisor is unable to complete the run, we have information about what stage it was in when it failed. Once the supervisor is stable, we may not be as concerned about all the stages it cycles through, and just want to know if it's healthy or unhealthy. This flag indicates if the state should only be accepted prior to having completed a successful run. -
getBasicState
-