Interface ITaskCollector

  • All Known Implementing Classes:
    TaskManager

    public interface ITaskCollector
    Manage the Tasks
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Collection<ITaskGroup> getFailedTaskGroups()
      Return a list of all the ITaskGroup objects which ran but failed This list does not contain any task groups which were not started (because they have dependencies on task groups which failed).
      ITaskGroup makeTaskGroup​(java.lang.String taskId, java.lang.Runnable r, java.util.List<ITaskGroup> children)
      Add the given task to the task group
      void startAndWait()
      Process the tasks, starting with the childless leaf tasks, waiting for everything to complete
    • Method Detail

      • makeTaskGroup

        ITaskGroup makeTaskGroup​(java.lang.String taskId,
                                 java.lang.Runnable r,
                                 java.util.List<ITaskGroup> children)
        Add the given task to the task group
        Parameters:
        taskId - the parent to tell when we're done. Can be null
        r - the runnable to call to process the task
        children -
        Returns:
      • startAndWait

        void startAndWait()
        Process the tasks, starting with the childless leaf tasks, waiting for everything to complete
      • getFailedTaskGroups

        java.util.Collection<ITaskGroup> getFailedTaskGroups()
        Return a list of all the ITaskGroup objects which ran but failed This list does not contain any task groups which were not started (because they have dependencies on task groups which failed).
        Returns: