示例#1
0
  private synchronized void saveJob(FullSDSBatchVo job) {
    if (job == null) return;

    job.setProcessedGPRequestsNo(TotalGPsNo);
    job.setSuccessfulGPRequestsUpdatedNo(SuccessfulGPssNo);
    job.setProcessedPracticeRequestsNo(TotalPracticesNo);
    job.setSuccessfulPracticeRequestsUpdatedNo(SuccessfulPracticesNo);

    DomainFactoryBridge factory = getDomainFactory();
    FullSDSBatch batch = FullSDSBatchVoAssembler.extractFullSDSBatch(factory, job);
    try {
      factory.save(batch);
    } catch (StaleObjectException e) {
      trace("Job details save has failed! " + e.getMessage());
      return;
    }
  }
示例#2
0
 private FullSDSBatchVo getJobDetails() {
   FullSDSBatch doJob =
       FullSDSBatch.getFullSDSBatchFromConfiguredJobDetails(
           getDomainFactory(), super.getConfiguredJob().getConfiguredScheduledJobID());
   return FullSDSBatchVoAssembler.create(doJob);
 }