Enum Task.TaskStatus

    • Enum Constant Detail

      • PENDING

        public static final Task.TaskStatus PENDING
        The task identifier has been reserved for a task in the Glance. No processing has begun on it yet.
      • PROCESSING

        public static final Task.TaskStatus PROCESSING
        The task has been picked up by the underlying executor and is being run using the backend Glance execution logic for that task type.
      • SUCCESS

        public static final Task.TaskStatus SUCCESS
        Denotes that the task has had a successful run within Glance. The result field of the task shows more details about the outcome.
      • FAILURE

        public static final Task.TaskStatus FAILURE
        Denotes that an error occurred during the execution of the task and it cannot continue processing. The message field of the task shows what the error was.
      • UNKNOWN

        public static final Task.TaskStatus UNKNOWN
        Task status is not a known value.
    • Method Detail

      • values

        public static Task.TaskStatus[] 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.TaskStatus c : Task.TaskStatus.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.TaskStatus valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()