Class TaskRunResult

  • All Implemented Interfaces:
    Serializable

    public class TaskRunResult
    extends Object
    implements Serializable
    Single-purpose class to return task run results. More than one value is returned, therefore it is bundled into a class.
    Author:
    Radovan Semancik
    See Also:
    Serialized Form
    • Field Detail

      • progress

        protected Long progress
        Progress to be recorded in the task. Null means "do not update, take whatever is in the task".
      • runResultStatus

        protected TaskRunResult.TaskRunResultStatus runResultStatus
        Final status of the run. It drives what should be done next. (E.g. repeat the run in the case of temporary errors and recurring tasks.)
      • operationResultStatus

        protected OperationResultStatus operationResultStatus
        Status to be reported to the user.
      • throwable

        protected Throwable throwable
        An exception that has occurred and that is going to be recorded at the root of the operation result. This is the "main" exception that caused the task run to be stopped. (It should be recorded somewhere in the operation result as well, if possible. But here it is designated as _the_ cause of the run being stopped.) If null, we will not overwrite the value that is computed for the result.
      • message

        protected String message
        Message that should be recorded in the root operation result. It has the same meaning as throwable. (Including the fact that if it's null, it won't overwrite whatever is in the result.)
    • Constructor Detail

      • TaskRunResult

        public TaskRunResult()