Package org.apache.uima.collection

Examples of org.apache.uima.collection.StatusCallbackListener


   * @param anException -
   *          exception to propagate to callback listeners
   */
  private void notifyListeners(CAS aCas, Exception anException) {
    for (int i = 0; callbackListeners != null && i < callbackListeners.size(); i++) {
      StatusCallbackListener statCL = (StatusCallbackListener) callbackListeners.get(i);
      ProcessTrace prTrace = new ProcessTrace_impl(cpm.getPerformanceTuningSettings());
      EntityProcessStatusImpl aEntityProcStatus = new EntityProcessStatusImpl(prTrace);
      aEntityProcStatus.addEventStatus("Collection Reader Failure", "failed", anException);
      // Notify the listener that the Cas has been processed
      statCL.entityProcessComplete(aCas, aEntityProcStatus);
    }
  }
View Full Code Here


   * @param anException -
   *          exception to propagate to callback listeners
   */
  private void notifyListeners(CAS aCas, Exception anException) {
    for (int i = 0; callbackListeners != null && i < callbackListeners.size(); i++) {
      StatusCallbackListener statCL = (StatusCallbackListener) callbackListeners.get(i);
      ProcessTrace prTrace = new ProcessTrace_impl(cpm.getPerformanceTuningSettings());
      EntityProcessStatusImpl aEntityProcStatus = new EntityProcessStatusImpl(prTrace);
      aEntityProcStatus.addEventStatus("Collection Reader Failure", "failed", anException);
      // Notify the listener that the Cas has been processed
      CPMEngine.callEntityProcessCompleteWithCAS(statCL, aCas, aEntityProcStatus);
View Full Code Here

TOP

Related Classes of org.apache.uima.collection.StatusCallbackListener

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.