Examples of JdProcessExceptionHandler


Examples of org.apache.uima.ducc.common.jd.plugin.JdProcessExceptionHandler

  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());
      setDuccWorkJob(job);
View Full Code Here

Examples of org.apache.uima.ducc.common.jd.plugin.JdProcessExceptionHandler

  }
 
  @Test
  public void test() {
    try {
      JdProcessExceptionHandler jdProcessExceptionHandler = new JdProcessExceptionHandler();
      for(int i=1; i<20; i++) {
        try {
          generateTimeout();
        }
        catch(Exception e) {
          String processId = "0";
          CAS cas = null;
          Properties properties = null;
          jdProcessExceptionHandler.handle(processId, cas, e, properties);
        }
      }
      for(int i=1; i<4; i++) {
        try {
          generateError();
        }
        catch(Exception e) {
          String processId = "1";
          CAS cas = null;
          Properties properties = null;
          jdProcessExceptionHandler.handle(processId, cas, e, properties);
        }
      }
      for(int i=1; i<13; i++) {
        try {
          generateError();
        }
        catch(Exception e) {
          String processId = "2";
          CAS cas = null;
          Properties properties = null;
          jdProcessExceptionHandler.handle(processId, cas, e, properties);
        }
      }
    }
    catch(Exception e) {
      e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.