Exemplo n.º 1
0
  public void restartJobs(AnalysisInfo info) {
    long sessId = info.getIdeaSessionId();
    if (runningBatch != null && runningBatch.getSessId() == sessId) {
      return;
    }

    for (Iterator<IDEABatch> it = batches.iterator(); it.hasNext(); ) {
      IDEABatch batch = it.next();
      if (batch.getSessId() == sessId) {
        return;
      }
    }

    IDEABatch batch = new IDEABatch();
    batch.setMethod(ExecutionMethod.Parallel);
    batch.setSessId(info.getIdeaSessionId());
    batch.setBatchHome(info.getAnalysisLocation());
    batch.setJobs(info.getJobs());
    addBatch(batch);
  }