Class TaskManager

    • Constructor Detail

      • TaskManager

        public TaskManager​(ExecutorService pool)
        Public constructor
        Parameters:
        pool -
    • Method Detail

      • submit

        public void submit​(TaskGroup tg)
        Submit the task group to the pool
        Parameters:
        tg -
      • getFailedTaskGroups

        public Collection<ITaskGroup> getFailedTaskGroups()
        Description copied from interface: ITaskCollector
        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).
        Specified by:
        getFailedTaskGroups in interface ITaskCollector
        Returns:
      • startAndWait

        public void startAndWait()
        Description copied from interface: ITaskCollector
        Process the tasks, starting with the childless leaf tasks, waiting for everything to complete
        Specified by:
        startAndWait in interface ITaskCollector
      • taskComplete

        public void taskComplete​(TaskGroup tg)
        Callback from each task group made when it completes
      • taskFailed

        public void taskFailed​(TaskGroup tg)
        Receipt of a signal from the task group that it has failed. No taskComplete will be called, so we need to signal it's the end of the road
        Parameters:
        tg -