public static enum SupervisorStateManager.BasicState extends Enum<SupervisorStateManager.BasicState> implements SupervisorStateManager.State
| Enum Constant and Description |
|---|
PENDING |
RUNNING |
STOPPING |
SUSPENDED |
UNHEALTHY_SUPERVISOR |
UNHEALTHY_TASKS |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFirstRunOnly()
It may be helpful to provide more detailed state information (e.g.
|
boolean |
isHealthy()
If we are in this state, is the supervisor healthy or unhealthy?
|
static SupervisorStateManager.BasicState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupervisorStateManager.BasicState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetBasicStatepublic static final SupervisorStateManager.BasicState UNHEALTHY_SUPERVISOR
public static final SupervisorStateManager.BasicState UNHEALTHY_TASKS
public static final SupervisorStateManager.BasicState PENDING
public static final SupervisorStateManager.BasicState RUNNING
public static final SupervisorStateManager.BasicState SUSPENDED
public static final SupervisorStateManager.BasicState STOPPING
public static SupervisorStateManager.BasicState[] values()
for (SupervisorStateManager.BasicState c : SupervisorStateManager.BasicState.values()) System.out.println(c);
public static SupervisorStateManager.BasicState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isHealthy()
SupervisorStateManager.StateisHealthy in interface SupervisorStateManager.Statepublic boolean isFirstRunOnly()
SupervisorStateManager.StateisFirstRunOnly in interface SupervisorStateManager.StateCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.