public static enum Protos.TaskState extends java.lang.Enum<Protos.TaskState>
Describes possible task states. IMPORTANT: Mesos assumes tasks that enter terminal states (see below) imply the task is no longer running and thus clean up any thing associated with the task (ultimately offering any resources being consumed by that task to another task).Protobuf enum
mesos.TaskState
Enum Constant and Description |
---|
TASK_DROPPED
The task failed to launch because of a transient error.
|
TASK_ERROR
TERMINAL: The task description contains an error.
|
TASK_FAILED
TERMINAL: The task failed to finish successfully.
|
TASK_FINISHED
The task finished successfully on its own without external interference.
|
TASK_GONE
The task is no longer running.
|
TASK_GONE_BY_OPERATOR
The task was running on an agent that the master cannot contact;
the operator has asserted that the agent has been shutdown, but
this has not been directly confirmed by the master.
|
TASK_KILLED
TERMINAL: The task was killed by the executor.
|
TASK_KILLING
NOTE: This should only be sent when the framework has
the TASK_KILLING_STATE capability.
|
TASK_LOST
In Mesos 1.3, this will only be sent when the framework does NOT
opt-in to the PARTITION_AWARE capability.
|
TASK_RUNNING
TASK_RUNNING = 1; |
TASK_STAGING
Initial state.
|
TASK_STARTING
The task is being launched by the executor.
|
TASK_UNKNOWN
The master has no knowledge of the task.
|
TASK_UNREACHABLE
The task was running on an agent that has lost contact with the
master, typically due to a network failure or partition.
|
Modifier and Type | Field and Description |
---|---|
static int |
TASK_DROPPED_VALUE
The task failed to launch because of a transient error.
|
static int |
TASK_ERROR_VALUE
TERMINAL: The task description contains an error.
|
static int |
TASK_FAILED_VALUE
TERMINAL: The task failed to finish successfully.
|
static int |
TASK_FINISHED_VALUE
The task finished successfully on its own without external interference.
|
static int |
TASK_GONE_BY_OPERATOR_VALUE
The task was running on an agent that the master cannot contact;
the operator has asserted that the agent has been shutdown, but
this has not been directly confirmed by the master.
|
static int |
TASK_GONE_VALUE
The task is no longer running.
|
static int |
TASK_KILLED_VALUE
TERMINAL: The task was killed by the executor.
|
static int |
TASK_KILLING_VALUE
NOTE: This should only be sent when the framework has
the TASK_KILLING_STATE capability.
|
static int |
TASK_LOST_VALUE
In Mesos 1.3, this will only be sent when the framework does NOT
opt-in to the PARTITION_AWARE capability.
|
static int |
TASK_RUNNING_VALUE
TASK_RUNNING = 1; |
static int |
TASK_STAGING_VALUE
Initial state.
|
static int |
TASK_STARTING_VALUE
The task is being launched by the executor.
|
static int |
TASK_UNKNOWN_VALUE
The master has no knowledge of the task.
|
static int |
TASK_UNREACHABLE_VALUE
The task was running on an agent that has lost contact with the
master, typically due to a network failure or partition.
|
Modifier and Type | Method and Description |
---|---|
static Protos.TaskState |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static <any> |
internalGetValueMap() |
static Protos.TaskState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protos.TaskState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Protos.TaskState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Protos.TaskState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protos.TaskState TASK_STAGING
Initial state. Framework status updates should not use.
TASK_STAGING = 6;
public static final Protos.TaskState TASK_STARTING
The task is being launched by the executor.
TASK_STARTING = 0;
public static final Protos.TaskState TASK_RUNNING
TASK_RUNNING = 1;
public static final Protos.TaskState TASK_KILLING
NOTE: This should only be sent when the framework has the TASK_KILLING_STATE capability.
TASK_KILLING = 8;
public static final Protos.TaskState TASK_FINISHED
The task finished successfully on its own without external interference.
TASK_FINISHED = 2;
public static final Protos.TaskState TASK_FAILED
TERMINAL: The task failed to finish successfully.
TASK_FAILED = 3;
public static final Protos.TaskState TASK_KILLED
TERMINAL: The task was killed by the executor.
TASK_KILLED = 4;
public static final Protos.TaskState TASK_ERROR
TERMINAL: The task description contains an error.
TASK_ERROR = 7;
public static final Protos.TaskState TASK_LOST
In Mesos 1.3, this will only be sent when the framework does NOT opt-in to the PARTITION_AWARE capability. NOTE: This state is not always terminal. For example, tasks might transition from TASK_LOST to TASK_RUNNING or other states when a partitioned agent reregisters.
TASK_LOST = 5;
public static final Protos.TaskState TASK_DROPPED
The task failed to launch because of a transient error. The task's executor never started running. Unlike TASK_ERROR, the task description is valid -- attempting to launch the task again may be successful.
TASK_DROPPED = 9;
public static final Protos.TaskState TASK_UNREACHABLE
The task was running on an agent that has lost contact with the master, typically due to a network failure or partition. The task may or may not still be running.
TASK_UNREACHABLE = 10;
public static final Protos.TaskState TASK_GONE
The task is no longer running. This can occur if the agent has been terminated along with all of its tasks (e.g., the host that was running the agent was rebooted). It might also occur if the task was terminated due to an agent or containerizer error, or if the task was preempted by the QoS controller in an oversubscription scenario.
TASK_GONE = 11;
public static final Protos.TaskState TASK_GONE_BY_OPERATOR
The task was running on an agent that the master cannot contact; the operator has asserted that the agent has been shutdown, but this has not been directly confirmed by the master. If the operator is correct, the task is not running and this is a terminal state; if the operator is mistaken, the task may still be running and might return to RUNNING in the future.
TASK_GONE_BY_OPERATOR = 12;
public static final Protos.TaskState TASK_UNKNOWN
The master has no knowledge of the task. This is typically because either (a) the master never had knowledge of the task, or (b) the master forgot about the task because it garbage collected its metadata about the task. The task may or may not still be running.
TASK_UNKNOWN = 13;
public static final int TASK_STAGING_VALUE
Initial state. Framework status updates should not use.
TASK_STAGING = 6;
public static final int TASK_STARTING_VALUE
The task is being launched by the executor.
TASK_STARTING = 0;
public static final int TASK_RUNNING_VALUE
TASK_RUNNING = 1;
public static final int TASK_KILLING_VALUE
NOTE: This should only be sent when the framework has the TASK_KILLING_STATE capability.
TASK_KILLING = 8;
public static final int TASK_FINISHED_VALUE
The task finished successfully on its own without external interference.
TASK_FINISHED = 2;
public static final int TASK_FAILED_VALUE
TERMINAL: The task failed to finish successfully.
TASK_FAILED = 3;
public static final int TASK_KILLED_VALUE
TERMINAL: The task was killed by the executor.
TASK_KILLED = 4;
public static final int TASK_ERROR_VALUE
TERMINAL: The task description contains an error.
TASK_ERROR = 7;
public static final int TASK_LOST_VALUE
In Mesos 1.3, this will only be sent when the framework does NOT opt-in to the PARTITION_AWARE capability. NOTE: This state is not always terminal. For example, tasks might transition from TASK_LOST to TASK_RUNNING or other states when a partitioned agent reregisters.
TASK_LOST = 5;
public static final int TASK_DROPPED_VALUE
The task failed to launch because of a transient error. The task's executor never started running. Unlike TASK_ERROR, the task description is valid -- attempting to launch the task again may be successful.
TASK_DROPPED = 9;
public static final int TASK_UNREACHABLE_VALUE
The task was running on an agent that has lost contact with the master, typically due to a network failure or partition. The task may or may not still be running.
TASK_UNREACHABLE = 10;
public static final int TASK_GONE_VALUE
The task is no longer running. This can occur if the agent has been terminated along with all of its tasks (e.g., the host that was running the agent was rebooted). It might also occur if the task was terminated due to an agent or containerizer error, or if the task was preempted by the QoS controller in an oversubscription scenario.
TASK_GONE = 11;
public static final int TASK_GONE_BY_OPERATOR_VALUE
The task was running on an agent that the master cannot contact; the operator has asserted that the agent has been shutdown, but this has not been directly confirmed by the master. If the operator is correct, the task is not running and this is a terminal state; if the operator is mistaken, the task may still be running and might return to RUNNING in the future.
TASK_GONE_BY_OPERATOR = 12;
public static final int TASK_UNKNOWN_VALUE
The master has no knowledge of the task. This is typically because either (a) the master never had knowledge of the task, or (b) the master forgot about the task because it garbage collected its metadata about the task. The task may or may not still be running.
TASK_UNKNOWN = 13;
public static Protos.TaskState[] values()
for (Protos.TaskState c : Protos.TaskState.values()) System.out.println(c);
public static Protos.TaskState 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 final int getNumber()
@Deprecated public static Protos.TaskState valueOf(int value)
forNumber(int)
instead.public static Protos.TaskState forNumber(int value)
public static <any> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Protos.TaskState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)