Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * Load the schedule & metadata template configuration
  *
  * @return String config
  */
 public String loadConfig() {
   return status.getConfig();
 }
Example #3
0
 public void saveConfig(String config) {
   status.setConfig(config);
   this.persist(status);
 }
Example #4
0
 public String toString() {
   return status.toString();
 }
Example #5
0
 public void reset() {
   status.reset();
   this.persist(status);
 }
Example #6
0
 public Timestamp getEnd() {
   return status.getEnd();
 }
Example #7
0
 public Timestamp getStart() {
   return status.getStart();
 }
Example #8
0
 public void saveStage(String stage) throws PersistenceRuntimeException {
   status.setStage(stage);
   this.persist(status);
 }
Example #9
0
 public String getStatus() {
   return status.getStatus();
 }
Example #10
0
 public long getLastFilesPk1() {
   return status.getLastFilesPk1();
 }
Example #11
0
 public long getFilesOffset() {
   return status.getFilesOffset();
 }
Example #12
0
 public void saveFileResumeData(long offset, long pk1) throws PersistenceRuntimeException {
   status.setFilesOffset(offset);
   status.setLastFilesPk1(pk1);
   this.persist(status);
 }
Example #13
0
 public long getLastQueueFileid() {
   return status.getLastQueueFileID();
 }
Example #14
0
 public long getQueueOffset() {
   return status.getQueueOffset();
 }