Package org.apache.uima.ducc.transport.event.common

Examples of org.apache.uima.ducc.transport.event.common.IDuccWorkService


    while(iterator.hasNext() && (++i < maxServices)) {
      try {
        Integer key = iterator.next();
        logger.debug(location, jobid, messages.fetchLabel("restore")+key);
        String fileName = map.get(key);
        IDuccWorkService duccWorkService;
        duccWorkService = hpm.serviceRestore(fileName);
        if(duccWorkService != null) {
          duccData.putIfNotPresent(duccWorkService);
          restored++;
        }
View Full Code Here


    return serviceRestore(fileName, Verbosity.SPEAK);
  }
 
  private IDuccWorkService serviceRestore(String fileName, Verbosity level) {
    String methodName = "serviceRestore";
    IDuccWorkService service = null;
    try {
      logger.trace(methodName, null, "restore:"+fileName);
      FileInputStream fis = null;
      ObjectInputStream in = null;
      fis = new FileInputStream(historyDirectory_services+File.separator+fileName);
View Full Code Here

    ArrayList<IDuccWorkService> retVal = new ArrayList<IDuccWorkService>();
    ArrayList<String> serviceFileNames = serviceList();
    ListIterator<String> listIterator = serviceFileNames.listIterator();
    while(listIterator.hasNext()) {
      String fileName = listIterator.next();
      IDuccWorkService service = serviceRestore(fileName);
      if(service != null) {
        retVal.add(service);
      }
    }
    return retVal;
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.transport.event.common.IDuccWorkService

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.