Interface TasksHandler.TasksListener

All Known Implementing Classes:
TasksHandler.TasksListenerAdapter
Enclosing class:
TasksHandler

public static interface TasksHandler.TasksListener
TasksListener is a generic interface listening tasks execution events. Methods in this interface will be called in a tasks execution position where user most likely will want to get notified.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onTaskFailed(Object id, Exception exception)
    Called when task execution result an error of any kind.
    void
    Called after tasks has been executed regardless if task execution succeeded or not.
    void
    Called before tasks is about to be executed.
    void
    Called when tasks execution resulted an error and AUTOMATIC state is entered.
    void
    Called when some of a tasks in DAGs failed to execute and tasks execution in going to continue.
    void
    Called when after an execution of full DAGs if some of the tasks executed with an error.
    void
    Called when all DAGs have either never executed or previous execution was fully successful.
    void
    Called when all tasks has been executed successfully.
    void
    Called when task execution result without errors.
  • Method Details

    • onTasksStarted

      void onTasksStarted()
      Called when all DAGs have either never executed or previous execution was fully successful.
    • onTasksContinue

      void onTasksContinue()
      Called when some of a tasks in DAGs failed to execute and tasks execution in going to continue.
    • onTaskPreExecute

      void onTaskPreExecute(Object id)
      Called before tasks is about to be executed.
      Parameters:
      id - the task id
    • onTaskPostExecute

      void onTaskPostExecute(Object id)
      Called after tasks has been executed regardless if task execution succeeded or not.
      Parameters:
      id - the task id
    • onTaskFailed

      void onTaskFailed(Object id, Exception exception)
      Called when task execution result an error of any kind.
      Parameters:
      id - the task id
      exception - the exception
    • onTaskSuccess

      void onTaskSuccess(Object id)
      Called when task execution result without errors.
      Parameters:
      id - the task id
    • onTasksSuccess

      void onTasksSuccess()
      Called when all tasks has been executed successfully.
    • onTasksError

      void onTasksError()
      Called when after an execution of full DAGs if some of the tasks executed with an error.
    • onTasksAutomaticFix

      void onTasksAutomaticFix(TasksHandler handler, StateContext<String,String> context)
      Called when tasks execution resulted an error and AUTOMATIC state is entered. This is a moment where extended state variables can be modified to allow continue into a READY state.
      Parameters:
      handler - the tasks handler
      context - the state context