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