This project has retired. For details please refer to its Attic page.
Protos.TaskState
JavaScript is disabled on your browser.
Skip navigation links
org.apache.mesos

Enum Protos.TaskState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Protos.TaskState>
    Enclosing class:
    Protos


    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 Summary

      Enum Constants
      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.
    • Field Summary

      Fields
      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.
    • Enum Constant Detail

      • TASK_STAGING

        public static final Protos.TaskState TASK_STAGING
         Initial state. Framework status updates should not use.
         
        TASK_STAGING = 6;
      • TASK_STARTING

        public static final Protos.TaskState TASK_STARTING
         The task is being launched by the executor.
         
        TASK_STARTING = 0;
      • TASK_RUNNING

        public static final Protos.TaskState TASK_RUNNING
        TASK_RUNNING = 1;
      • TASK_KILLING

        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;
      • TASK_FINISHED

        public static final Protos.TaskState TASK_FINISHED
         The task finished successfully on its own without external interference.
         
        TASK_FINISHED = 2;
      • TASK_FAILED

        public static final Protos.TaskState TASK_FAILED
         TERMINAL: The task failed to finish successfully.
         
        TASK_FAILED = 3;
      • TASK_KILLED

        public static final Protos.TaskState TASK_KILLED
         TERMINAL: The task was killed by the executor.
         
        TASK_KILLED = 4;
      • TASK_ERROR

        public static final Protos.TaskState TASK_ERROR
         TERMINAL: The task description contains an error.
         
        TASK_ERROR = 7;
      • TASK_LOST

        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;
      • TASK_DROPPED

        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;
      • TASK_UNREACHABLE

        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;
      • TASK_GONE

        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;
      • TASK_GONE_BY_OPERATOR

        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;
      • TASK_UNKNOWN

        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;
    • Field Detail

      • TASK_STAGING_VALUE

        public static final int TASK_STAGING_VALUE
         Initial state. Framework status updates should not use.
         
        TASK_STAGING = 6;
        See Also:
        Constant Field Values
      • TASK_STARTING_VALUE

        public static final int TASK_STARTING_VALUE
         The task is being launched by the executor.
         
        TASK_STARTING = 0;
        See Also:
        Constant Field Values
      • TASK_RUNNING_VALUE

        public static final int TASK_RUNNING_VALUE
        TASK_RUNNING = 1;
        See Also:
        Constant Field Values
      • TASK_KILLING_VALUE

        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;
        See Also:
        Constant Field Values
      • TASK_FINISHED_VALUE

        public static final int TASK_FINISHED_VALUE
         The task finished successfully on its own without external interference.
         
        TASK_FINISHED = 2;
        See Also:
        Constant Field Values
      • TASK_FAILED_VALUE

        public static final int TASK_FAILED_VALUE
         TERMINAL: The task failed to finish successfully.
         
        TASK_FAILED = 3;
        See Also:
        Constant Field Values
      • TASK_KILLED_VALUE

        public static final int TASK_KILLED_VALUE
         TERMINAL: The task was killed by the executor.
         
        TASK_KILLED = 4;
        See Also:
        Constant Field Values
      • TASK_ERROR_VALUE

        public static final int TASK_ERROR_VALUE
         TERMINAL: The task description contains an error.
         
        TASK_ERROR = 7;
        See Also:
        Constant Field Values
      • TASK_LOST_VALUE

        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;
        See Also:
        Constant Field Values
      • TASK_DROPPED_VALUE

        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;
        See Also:
        Constant Field Values
      • TASK_UNREACHABLE_VALUE

        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;
        See Also:
        Constant Field Values
      • TASK_GONE_VALUE

        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;
        See Also:
        Constant Field Values
      • TASK_GONE_BY_OPERATOR_VALUE

        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;
        See Also:
        Constant Field Values
      • TASK_UNKNOWN_VALUE

        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;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Protos.TaskState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Protos.TaskState c : Protos.TaskState.values())
         System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Protos.TaskState valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
      • internalGetValueMap

        public static <any> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static Protos.TaskState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /