Exemple #1
0
 public PartialJob(JobIndexInfo jobIndexInfo, JobId jobId) {
   this.jobIndexInfo = jobIndexInfo;
   this.jobId = jobId;
   jobReport = RecordFactoryProvider.getRecordFactory(null).newRecordInstance(JobReport.class);
   jobReport.setSubmitTime(jobIndexInfo.getSubmitTime());
   jobReport.setStartTime(jobIndexInfo.getJobStartTime());
   jobReport.setFinishTime(jobIndexInfo.getFinishTime());
   jobReport.setJobState(getState());
 }
    @Override
    public GetJobReportResponse getJobReport(GetJobReportRequest request) throws IOException {

      amContact = true;

      JobReport jobReport = recordFactory.newRecordInstance(JobReport.class);
      jobReport.setJobId(request.getJobId());
      jobReport.setJobState(JobState.RUNNING);
      jobReport.setJobName("TestClientRedirect-jobname");
      jobReport.setUser("TestClientRedirect-user");
      jobReport.setStartTime(0L);
      jobReport.setFinishTime(1L);

      GetJobReportResponse response = recordFactory.newRecordInstance(GetJobReportResponse.class);
      response.setJobReport(jobReport);
      return response;
    }