Class AnalysisScheduler

java.lang.Object
de.firemage.autograder.core.parallel.AnalysisScheduler

public class AnalysisScheduler extends Object
  • Constructor Details

    • AnalysisScheduler

      public AnalysisScheduler(int threads, ClassLoader classLoader)
  • Method Details

    • submitTask

      public void submitTask(AnalysisTask task)
    • getTask

      protected Optional<AnalysisTask> getTask() throws InterruptedException
      Throws:
      InterruptedException
    • completeTask

      protected boolean completeTask()
    • getClassLoader

      protected ClassLoader getClassLoader()
    • collectProblems

      public AnalysisResult collectProblems()
      Collects all problems from all threads. This method is blocking! Never add more tasks *outside already submitted tasks* after calling this method, because they may never be executed.