Enum Task.TaskStatusForRunning

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Task.TaskStatusForRunning>
    Enclosing interface:
    Task

    public static enum Task.TaskStatusForRunning
    extends java.lang.Enum<Task.TaskStatusForRunning>
    The TaskStatusForRunning enum represents the possible statuses of a task while it is running.

    Each enum value corresponds to a specific status: FAILED, SUCCESS, KILLED, SUCCESSFUL, RUNNING, FINISHED, or SPECULATIVE.

    The FAILED status indicates that the task has failed and will not be able to complete successfully. The SUCCESS status indicates that the task has completed successfully and produced a result. The KILLED status indicates that the task was killed before it could complete. The SUCCESSFUL status indicates that the task has completed successfully, but did not produce a result. The RUNNING status indicates that the task is currently running. The FINISHED status indicates that the task has finished running, but its result has not yet been obtained. The SPECULATIVE status indicates that the task is running in a speculative manner, in addition to the primary task.

    Author:
    [Adeel Aslam]
    • Method Detail

      • values

        public static Task.TaskStatusForRunning[] 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 (Task.TaskStatusForRunning c : Task.TaskStatusForRunning.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Task.TaskStatusForRunning 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