.setId(new FlowStatusId().setFlowGroup(flowId.getFlowGroup()).setFlowName(flowId.getFlowName()) .setFlowExecutionId(monitoringFlowStatus.getFlowExecutionId())) .setExecutionStatistics(new FlowStatistics().setExecutionStartTime(flowStartTime) .setExecutionEndTime(flowEndTime)) .setMessage(flowMessages) .setExecutionStatus(flowExecutionStatus)
Assert.assertEquals(flowStatus.getExecutionStatistics().getExecutionStartTime().longValue(), 2000L); Assert.assertEquals(flowStatus.getExecutionStatistics().getExecutionEndTime().longValue(), 6000L); Assert.assertEquals(flowStatus.getMessage(), js2.getMessage()); Assert.assertEquals(flowStatus.getExecutionStatus(), ExecutionStatus.COMPLETE);
/** * Setter for executionStartTime * * @see FlowStatistics.Fields#executionStartTime */ public FlowStatistics setExecutionStartTime(Long value, SetMode mode) { putDirect(FIELD_ExecutionStartTime, Long.class, Long.class, value, mode); return this; }
/** * Getter for executionEndTime * * @see FlowStatistics.Fields#executionEndTime */ public Long getExecutionEndTime(GetMode mode) { return obtainDirect(FIELD_ExecutionEndTime, Long.class, mode); }
/** * Remover for executionEndTime * * @see FlowStatistics.Fields#executionEndTime */ public void removeExecutionEndTime() { remove(FIELD_ExecutionEndTime); }
/** * Existence checker for executionStartTime * * @see FlowStatistics.Fields#executionStartTime */ public boolean hasExecutionStartTime() { return contains(FIELD_ExecutionStartTime); }
/** * Setter for executionStartTime * * @see FlowStatistics.Fields#executionStartTime */ public FlowStatistics setExecutionStartTime(long value) { putDirect(FIELD_ExecutionStartTime, Long.class, Long.class, value, SetMode.DISALLOW_NULL); return this; }
/** * Getter for executionStartTime * * @see FlowStatistics.Fields#executionStartTime */ public Long getExecutionStartTime(GetMode mode) { return obtainDirect(FIELD_ExecutionStartTime, Long.class, mode); }
/** * Remover for executionStartTime * * @see FlowStatistics.Fields#executionStartTime */ public void removeExecutionStartTime() { remove(FIELD_ExecutionStartTime); }
/** * Existence checker for executionEndTime * * @see FlowStatistics.Fields#executionEndTime */ public boolean hasExecutionEndTime() { return contains(FIELD_ExecutionEndTime); }
Assert.assertEquals(flowStatus.getExecutionStatistics().getExecutionStartTime().longValue(), 1000L); Assert.assertEquals(flowStatus.getExecutionStatistics().getExecutionEndTime().longValue(), 6000L); Assert.assertEquals(flowStatus.getMessage(), messageJoiner.join(js1.getMessage(), js2.getMessage())); Assert.assertEquals(flowStatus.getExecutionStatus(), ExecutionStatus.RUNNING);
/** * Setter for executionEndTime * * @see FlowStatistics.Fields#executionEndTime */ public FlowStatistics setExecutionEndTime(Long value, SetMode mode) { putDirect(FIELD_ExecutionEndTime, Long.class, Long.class, value, mode); return this; }
/** * Getter for executionEndTime * * @return * Required field. Could be null for partial record. * @see FlowStatistics.Fields#executionEndTime */ @Nonnull public Long getExecutionEndTime() { return obtainDirect(FIELD_ExecutionEndTime, Long.class, GetMode.STRICT); }
Assert.assertEquals(flowStatus.getExecutionStatistics().getExecutionStartTime().longValue(), 1000L); Assert.assertEquals(flowStatus.getExecutionStatistics().getExecutionEndTime().longValue(), 6000L); Assert.assertEquals(flowStatus.getMessage(), messageJoiner.join(js1.getMessage(), js2.getMessage())); Assert.assertEquals(flowStatus.getExecutionStatus(), ExecutionStatus.COMPLETE);
/** * Setter for executionEndTime * * @see FlowStatistics.Fields#executionEndTime */ public FlowStatistics setExecutionEndTime(long value) { putDirect(FIELD_ExecutionEndTime, Long.class, Long.class, value, SetMode.DISALLOW_NULL); return this; }
/** * Getter for executionStartTime * * @return * Required field. Could be null for partial record. * @see FlowStatistics.Fields#executionStartTime */ @Nonnull public Long getExecutionStartTime() { return obtainDirect(FIELD_ExecutionStartTime, Long.class, GetMode.STRICT); }
Assert.assertEquals(flowStatus.getExecutionStatistics().getExecutionStartTime().longValue(), 1000L); Assert.assertEquals(flowStatus.getExecutionStatistics().getExecutionEndTime().longValue(), 6000L); Assert.assertEquals(flowStatus.getMessage(), messageJoiner.join(js1.getMessage(), js2.getMessage())); Assert.assertEquals(flowStatus.getExecutionStatus(), ExecutionStatus.FAILED);
/** * Setter for executionEndTime * * @param value * Must not be null. For more control, use setters with mode instead. * @see FlowStatistics.Fields#executionEndTime */ public FlowStatistics setExecutionEndTime( @Nonnull Long value) { putDirect(FIELD_ExecutionEndTime, Long.class, Long.class, value, SetMode.DISALLOW_NULL); return this; }
/** * Setter for executionStartTime * * @param value * Must not be null. For more control, use setters with mode instead. * @see FlowStatistics.Fields#executionStartTime */ public FlowStatistics setExecutionStartTime( @Nonnull Long value) { putDirect(FIELD_ExecutionStartTime, Long.class, Long.class, value, SetMode.DISALLOW_NULL); return this; }