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

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


  public void initialize(IDuccWorkJob job, String jdJmxUrl) throws JobDriverTerminateException {
    String location = "initialize";
    duccOut.info(location, jobid, "jd.step:"+location);
    try {
      casDispatchMap = new CasDispatchMap();
      jdProcessExceptionHandler = new JdProcessExceptionHandler();
      activeWorkItems = new AtomicInteger(0);
      casWorkItemMap = new ConcurrentHashMap<String,WorkItem>();
      //
      setJobid(job.getDuccId());
View Full Code Here


    duccOut.debug(location, jobid, job.getJobState());
  }
 
  private void interrupter() {
    String location = "interrupter";
    CasDispatchMap casDispatchMap = getCasDispatchMap();
    IDuccProcessMap processMap = (IDuccProcessMap) getJob().getProcessMap().deepCopy();
    Iterator<DuccId> iterator = processMap.keySet().iterator();
    while(iterator.hasNext()) {
      DuccId duccId = iterator.next();
      IDuccProcess duccProcess = processMap.get(duccId);
      boolean statusComplete = duccProcess.isComplete();
      boolean statusDeallocated = duccProcess.isDeallocated();
      boolean statusProcessFailed = duccProcess.isFailed();
      if(statusComplete || statusDeallocated || statusProcessFailed) {
        duccOut.debug(location, jobid, duccProcess.getDuccId(), "isComplete:"+statusComplete+" "+"isDeallocated:"+statusDeallocated+" "+"isProcessFailed:"+statusProcessFailed);
        casDispatchMap.interrupt(getJob(), duccProcess);
      }
    }
  }
View Full Code Here

TOP

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

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.