.setJobId(new JobId().setJobName(queriedJobStatus.getJobName()) .setJobGroup(queriedJobStatus.getJobGroup())) .setExecutionStatistics(new JobStatistics() .setExecutionStartTime(queriedJobStatus.getStartTime()) .setExecutionEndTime(queriedJobStatus.getEndTime()) .setProcessedCount(queriedJobStatus.getProcessedCount())) .setExecutionStatus(ExecutionStatus.valueOf(queriedJobStatus.getEventName())) .setMessage(queriedJobStatus.getMessage())
/** * compare the job status objects from the REST call and monitoring service * @param js JobStatus from REST * @param mjs JobStatus from monitoring */ private void compareJobStatus(JobStatus js, org.apache.gobblin.service.monitoring.JobStatus mjs) { Assert.assertEquals(mjs.getFlowGroup(), js.getFlowId().getFlowGroup()); Assert.assertEquals(mjs.getFlowName(), js.getFlowId().getFlowName()); Assert.assertEquals(mjs.getJobGroup(), js.getJobId().getJobGroup()); Assert.assertEquals(mjs.getJobName(), js.getJobId().getJobName()); Assert.assertEquals(mjs.getMessage(), js.getMessage()); Assert.assertEquals(mjs.getStartTime(), js.getExecutionStatistics().getExecutionStartTime().longValue()); Assert.assertEquals(mjs.getEndTime(), js.getExecutionStatistics().getExecutionEndTime().longValue()); Assert.assertEquals(mjs.getProcessedCount(), js.getExecutionStatistics().getProcessedCount().longValue()); Assert.assertEquals(mjs.getLowWatermark(), js.getJobState().getLowWatermark()); Assert.assertEquals(mjs.getHighWatermark(), js.getJobState().getHighWatermark()); } }
/** * Setter for executionStartTime * * @see JobStatistics.Fields#executionStartTime */ public JobStatistics setExecutionStartTime(Long value, SetMode mode) { putDirect(FIELD_ExecutionStartTime, Long.class, Long.class, value, mode); return this; }
/** * Getter for executionEndTime * * @see JobStatistics.Fields#executionEndTime */ public Long getExecutionEndTime(GetMode mode) { return obtainDirect(FIELD_ExecutionEndTime, Long.class, mode); }
/** * Remover for processedCount * * @see JobStatistics.Fields#processedCount */ public void removeProcessedCount() { remove(FIELD_ProcessedCount); }
/** * Existence checker for processedCount * * @see JobStatistics.Fields#processedCount */ public boolean hasProcessedCount() { return contains(FIELD_ProcessedCount); }
/** * Setter for executionStartTime * * @see JobStatistics.Fields#executionStartTime */ public JobStatistics setExecutionStartTime(long value) { putDirect(FIELD_ExecutionStartTime, Long.class, Long.class, value, SetMode.DISALLOW_NULL); return this; }
/** * Getter for executionStartTime * * @see JobStatistics.Fields#executionStartTime */ public Long getExecutionStartTime(GetMode mode) { return obtainDirect(FIELD_ExecutionStartTime, Long.class, mode); }
/** * Remover for executionStartTime * * @see JobStatistics.Fields#executionStartTime */ public void removeExecutionStartTime() { remove(FIELD_ExecutionStartTime); }
/** * Existence checker for executionStartTime * * @see JobStatistics.Fields#executionStartTime */ public boolean hasExecutionStartTime() { return contains(FIELD_ExecutionStartTime); }
/** * Setter for processedCount * * @see JobStatistics.Fields#processedCount */ public JobStatistics setProcessedCount(long value) { putDirect(FIELD_ProcessedCount, Long.class, Long.class, value, SetMode.DISALLOW_NULL); return this; }
/** * Getter for processedCount * * @see JobStatistics.Fields#processedCount */ public Long getProcessedCount(GetMode mode) { return obtainDirect(FIELD_ProcessedCount, Long.class, mode); }
/** * Remover for executionEndTime * * @see JobStatistics.Fields#executionEndTime */ public void removeExecutionEndTime() { remove(FIELD_ExecutionEndTime); }
/** * Existence checker for executionEndTime * * @see JobStatistics.Fields#executionEndTime */ public boolean hasExecutionEndTime() { return contains(FIELD_ExecutionEndTime); }
/** * Setter for executionEndTime * * @see JobStatistics.Fields#executionEndTime */ public JobStatistics setExecutionEndTime(long value) { putDirect(FIELD_ExecutionEndTime, Long.class, Long.class, value, SetMode.DISALLOW_NULL); return this; }
/** * Getter for processedCount * * @return * Required field. Could be null for partial record. * @see JobStatistics.Fields#processedCount */ @Nonnull public Long getProcessedCount() { return obtainDirect(FIELD_ProcessedCount, Long.class, GetMode.STRICT); }
/** * Setter for executionEndTime * * @see JobStatistics.Fields#executionEndTime */ public JobStatistics setExecutionEndTime(Long value, SetMode mode) { putDirect(FIELD_ExecutionEndTime, Long.class, Long.class, value, mode); return this; }
/** * Getter for executionStartTime * * @return * Required field. Could be null for partial record. * @see JobStatistics.Fields#executionStartTime */ @Nonnull public Long getExecutionStartTime() { return obtainDirect(FIELD_ExecutionStartTime, Long.class, GetMode.STRICT); }
/** * Setter for processedCount * * @see JobStatistics.Fields#processedCount */ public JobStatistics setProcessedCount(Long value, SetMode mode) { putDirect(FIELD_ProcessedCount, Long.class, Long.class, value, mode); return this; }
/** * Getter for executionEndTime * * @return * Required field. Could be null for partial record. * @see JobStatistics.Fields#executionEndTime */ @Nonnull public Long getExecutionEndTime() { return obtainDirect(FIELD_ExecutionEndTime, Long.class, GetMode.STRICT); }