/** * Sets the date that the status changed to CANCELLED. * * @param cancelledDate * the date that the status changed to CANCELLED */ public void setCancelledDate(Date cancelledDate) { this.cancelledDate = cancelledDate; setState(State.CANCELLED); }
/** * Sets the date that the status changed to RUNNING. * * @param startedDate * the date that the status changed to RUNNING */ public void setStartedDate(Date startedDate) { if (this.startedDate == null) this.startedDate = startedDate; setState(State.RUNNING); }
/** * Sets the date that the status changed to FAILED. * * @param failedDate * the date that the status changed to FAILED */ public void setFailedDate(Date failedDate) { this.failedDate = failedDate; setState(State.FAILED); }
/** * Sets the date that the status was set to CREATED. * * @param createdDate * the date that the status was set to CREATED */ public void setCreatedDate(Date createdDate) { this.createdDate = createdDate; setState(State.CREATED); }
/** * Sets the date that the status changed to COMPLETED. * * @param completedDate * the date that the status changed to COMPLETED */ public void setCompletedDate(Date completedDate) { this.completedDate = completedDate; setState(State.COMPLETED); }
/** * Sets the date that the status last changed form PAUSED to RUNNING. * * @param resumedDate * the date that the status last changed form PAUSED to RUNNING */ public void setResumedDate(Date resumedDate) { this.resumedDate = resumedDate; resumedDates.add(resumedDate); setState(State.RUNNING); }
/** * Sets the date that the status last changed to PAUSED. * * @param pausedDate * the date that the status last changed to PAUSED */ public void setPausedDate(Date pausedDate) { this.pausedDate = pausedDate; pausedDates.add(pausedDate); setState(State.PAUSED); }
report.setState(state); } catch (IllegalArgumentException ex) { throw new ParseException("Invalid state: " + json.get("state"), -1);