Package org.apache.uima.ducc.jd.client

Examples of org.apache.uima.ducc.jd.client.CasTuple


        duccOut.trace(location, jobid, "return");
        return;
      }
      duccOut.trace(location, jobid, "continue...");
      for(int i=0; i<count; i++) {
        CasTuple casTuple = casSource.pop();
        driverStatusReport.setWorkItemsFetched(casSource.getSeqNo());
        if(casTuple == null) {
          if(casSource.isEmpty()) {
            driverStatusReport.resetWorkItemsPending();
          }
          break;
        }
        duccOut.debug(location, jobid, "queue:"+casTuple.getSeqno());
        ThreadLocation threadLocation = new ThreadLocation(""+casTuple.getSeqno());
        duccOut.debug(location, jobid, "action:ready "+threadLocation.getInfo());
        getCasDispatchMap().put(casTuple, threadLocation);
        Future<?> pendingWork = executor.submit(workItemFactory.create(casTuple));
        threadLocation.setPendingWork(pendingWork);
        workItemActive();
View Full Code Here


    String location = "retry";
    duccOut.info(location, workItem.getJobId(), workItem.getProcessId(), "seqNo:"+workItem.getSeqNo()+" "+"wiId:"+workItem.getCasDocumentText());
    duccOut.debug(location, workItem.getJobId(), workItem.getProcessId(), "seqNo:"+workItem.getSeqNo()+" "+"wiId:"+workItem.getCasDocumentText()+" "+"casId:"+workItem.getCAS().hashCode());
    remove(workItem);
    duccOut.debug(location, workItem.getJobId(), workItem.getProcessId(), "size:"+casDispatchMap.size());
    CasTuple casTuple = workItem.getCasTuple();
    casTuple.setRetry();
    casTuple.setDuccId(workItem.getProcessId());
    casSource.push(casTuple);
    driverStatusReport.setWorkItemsPending();
    workItemStateManager.retry(workItem.getSeqNo());
    return;
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.jd.client.CasTuple

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.