public enum GoalStateOverride extends java.lang.Enum<GoalStateOverride>
GoalState
s, which a
task may enter. The main difference between this and GoalState
is that GoalState
s are configured by
the service developer, whereas GoalStateOverride
s are applied by the operator.Modifier and Type | Class and Description |
---|---|
static class |
GoalStateOverride.Progress
The state of the override itself.
|
static class |
GoalStateOverride.Status
Describes the current state of an override.
|
Enum Constant and Description |
---|
DECOMMISSIONED
The definition of the "DECOMMISSIONED" override state, where tasks are removed from the service.
|
NONE
The definition of the default no-override state.
|
PAUSED
The definition of the "PAUSED" override state, where commands are replaced with sleep()s.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PAUSE_COMMAND
Sleep forever when pausing.
|
static java.lang.String |
PAUSE_READINESS_COMMAND
Plans should not assume that a paused task has fulfilled the requirement of its dependencies.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSerializedName()
The label which tasks in this state are given.
|
java.lang.String |
getTransitioningName()
The state which tasks which are in the process of entering this state are given.
|
GoalStateOverride.Status |
newStatus(GoalStateOverride.Progress progress) |
static GoalStateOverride |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GoalStateOverride[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GoalStateOverride NONE
GoalState
setting.public static final GoalStateOverride PAUSED
public static final GoalStateOverride DECOMMISSIONED
public static final java.lang.String PAUSE_COMMAND
public static final java.lang.String PAUSE_READINESS_COMMAND
public static GoalStateOverride[] values()
for (GoalStateOverride c : GoalStateOverride.values()) System.out.println(c);
public static GoalStateOverride valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic GoalStateOverride.Status newStatus(GoalStateOverride.Progress progress)
public java.lang.String getSerializedName()
WARNING: THIS IS STORED IN ZOOKEEPER TASK METADATA AND THEREFORE CANNOT EASILY BE CHANGED
public java.lang.String getTransitioningName()