Interface ITaskCollector

  • All Known Implementing Classes:
    TaskManager

    public interface ITaskCollector
    Manage the Tasks
    • Method Detail

      • makeTaskGroup

        ITaskGroup makeTaskGroup​(String taskId,
                                 Runnable r,
                                 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

        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: