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

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


      workItemStateManager = new WorkItemStateManager(logsjobdir);
      synchronizedStats = new SynchronizedStats();
      // Prepare UIMA-AS client instance and multiple threads
      ClientThreadFactory factory = new ClientThreadFactory("UimaASClientThread");
      queue = new LinkedBlockingQueue<Runnable>();
      executor = new DynamicThreadPoolExecutor(1, 1, 10, TimeUnit.MICROSECONDS, queue, factory, null);
      client = new BaseUIMAAsynchronousEngine_impl();
      workItemListener = new WorkItemListener(this);
      client.addStatusCallbackListener(workItemListener);
      // Initialize CAS source
      duccOut.debug(location, jobid, "CAS source initializing...");
View Full Code Here

TOP

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

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.