Ejemplo n.º 1
0
 public Collection<InstanceState> getAllInstanceStates() {
   Collection<InstanceState> allInstanceStates = new LinkedList<InstanceState>();
   for (Runner runner : stopper.getRunners()) {
     allInstanceStates.add(runner.getInstanceState());
   }
   return allInstanceStates;
 }
Ejemplo n.º 2
0
  public void notifyFinished(Runner runner) {
    /* Get results */
    InstanceType instanceType = runner.getInstanceState().getInstanceType();
    Multimap<Benchmark, Result> benchmarkResults = runner.getBenchmarkResults();
    if (benchmarkResults != null)
      resultsForAllBenchmarksForType.put(instanceType, benchmarkResults);

    /* Check if all are done and notify the GUI */
    synchronized (numberOfRunnersDone) {
      if (++numberOfRunnersDone >= stopper.getRunners().size()) {
        setChanged();
        notifyObservers();
      }
    }
  }