public Collection<InstanceState> getAllInstanceStates() { Collection<InstanceState> allInstanceStates = new LinkedList<InstanceState>(); for (Runner runner : stopper.getRunners()) { allInstanceStates.add(runner.getInstanceState()); } return allInstanceStates; }
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(); } } }