code: public List<DistRaid> getRunningJobs() {
      List<DistRaid> list = new LinkedList<DistRaid>();
      synchronized(jobs) {
        for (List<DistRaid> jobList : jobs.values()) {
          synchronized(jobList) {
            list.addAll(jobList);
          }
        }
      }
      return list;
    }
docs: for test