Package org.apache.uima.ducc.orchestrator.utilities

Examples of org.apache.uima.ducc.orchestrator.utilities.Checkpointable


    long t1 = System.currentTimeMillis();
    long elapsed = t1 - t0;
    if(elapsed > Constants.SYNC_LIMIT) {
      logger.debug(methodName, null, "elapsed msecs: "+elapsed);
    }
    return new Checkpointable(ckptWorkMap,ckptProcessToJobMap);
  }
View Full Code Here


          logger.info(methodName, null, messages.fetchLabel("saving to")+fileName);
          FileOutputStream fos = null;
          ObjectOutputStream out = null;
          fos = new FileOutputStream(fileName);
          out = new ObjectOutputStream(fos);
          Checkpointable checkpointable = orchestratorCommonArea.getCheckpointable();
          out.writeObject(checkpointable);
          out.close();
          retVal = true;
          logger.info(methodName, null, messages.fetchLabel("saved")+fileName);
        }
View Full Code Here

          logger.info(methodName, null, messages.fetchLabel("restoring from")+fileName);
          FileInputStream fis = null;
          ObjectInputStream in = null;
          fis = new FileInputStream(fileName);
          in = new ObjectInputStream(fis);
          Checkpointable checkpointable = (Checkpointable)in.readObject();
          orchestratorCommonArea.setCheckpointable(checkpointable);
          in.close();
          retVal = true;
          logger.info(methodName, null, messages.fetch("restored"));
        }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.orchestrator.utilities.Checkpointable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.