Class LabelEstimator.Job

java.lang.Object
io.github.jbastgen.stemma.app.label.LabelEstimator.Job
Enclosing class:
LabelEstimator

public static final class LabelEstimator.Job extends Object
One run over some commits. Blocking: run it on a thread of its own; cancel() may be called from any thread.
  • Constructor Details

  • Method Details

    • cancel

      public void cancel()
      Stops after the commit that is being asked about; its answer is dropped.
    • run

      public LabelEstimator.Outcome run(List<String> commitIds, LabelEstimator.Progress progress)
      Goes through the commits one by one. A commit that cannot be read is skipped; a failure of the AI (service not reachable, key wrong, ...) stops the run, because the next commit would fail the same way.