/** * Save the data necessary for resuming from an interrupted queue generation. * * @param queueOffset How many table entries we've already processed * @param lastQueueFileid The id of the last file we processed. * @throws PersistenceRuntimeException */ public void saveQueueResumeData(long queueOffset, long lastQueueFileid) throws PersistenceRuntimeException { status.setQueueOffset(queueOffset); status.setLastQueueFileID(lastQueueFileid); this.persist(status); }
/** * Load the schedule & metadata template configuration * * @return String config */ public String loadConfig() { return status.getConfig(); }
public void saveConfig(String config) { status.setConfig(config); this.persist(status); }
public String toString() { return status.toString(); }
public void reset() { status.reset(); this.persist(status); }
public Timestamp getEnd() { return status.getEnd(); }
public Timestamp getStart() { return status.getStart(); }
public void saveStage(String stage) throws PersistenceRuntimeException { status.setStage(stage); this.persist(status); }
public String getStatus() { return status.getStatus(); }
public long getLastFilesPk1() { return status.getLastFilesPk1(); }
public long getFilesOffset() { return status.getFilesOffset(); }
public void saveFileResumeData(long offset, long pk1) throws PersistenceRuntimeException { status.setFilesOffset(offset); status.setLastFilesPk1(pk1); this.persist(status); }
public long getLastQueueFileid() { return status.getLastQueueFileID(); }
public long getQueueOffset() { return status.getQueueOffset(); }