Examples of releaseCasProcessor()


Examples of org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer.releaseCasProcessor()

        }
        CasProcessor processor = container.getCasProcessor();
        if (processor instanceof CasObjectProcessor) {
          ((CasObjectProcessor) processor).typeSystemInit(cas.getTypeSystem());
        }
        container.releaseCasProcessor(processor);
      }
      for (int i = 0; i < consumerList.size(); i++) {
        ProcessingContainer container = (ProcessingContainer) consumerList.get(i);
        if (container.getStatus() == Constants.CAS_PROCESSOR_DISABLED) {
          continue; // skip over disabled CasProcessors
View Full Code Here

Examples of org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer.releaseCasProcessor()

        }
        CasProcessor processor = container.getCasProcessor();
        if (processor instanceof CasObjectProcessor) {
          ((CasObjectProcessor) processor).typeSystemInit(cas.getTypeSystem());
        }
        container.releaseCasProcessor(processor);
      }
    } catch (ResourceInitializationException e) {
      throw e;
    } catch (Exception e) {
      throw new ResourceInitializationException(e);
View Full Code Here

Examples of org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer.releaseCasProcessor()

        if (md != null) {
          manager.addMetaData(md);
        }
      }
      finally {
        container.releaseCasProcessor(processor);
      }
    }
    for (int i = 0; i < consumerList.size(); i++) {
      ProcessingContainer container = (ProcessingContainer) consumerList.get(i);
      if (container.getStatus() == Constants.CAS_PROCESSOR_DISABLED) {
View Full Code Here

Examples of org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer.releaseCasProcessor()

        if (md != null) {
          manager.addMetaData(md);
        }
      }
      finally {
        container.releaseCasProcessor(processor);
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer.releaseCasProcessor()

        }
        CasProcessor processor = container.getCasProcessor();
        if (processor instanceof CasObjectProcessor) {
          ((CasObjectProcessor) processor).typeSystemInit(cas.getTypeSystem());
        }
        container.releaseCasProcessor(processor);
      }
      for (int i = 0; i < consumerList.size(); i++) {
        ProcessingContainer container = (ProcessingContainer) consumerList.get(i);
        if (container.getStatus() == Constants.CAS_PROCESSOR_DISABLED) {
          continue; // skip over disabled CasProcessors
View Full Code Here

Examples of org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer.releaseCasProcessor()

        }
        CasProcessor processor = container.getCasProcessor();
        if (processor instanceof CasObjectProcessor) {
          ((CasObjectProcessor) processor).typeSystemInit(cas.getTypeSystem());
        }
        container.releaseCasProcessor(processor);
      }
    } catch (ResourceInitializationException e) {
      throw e;
    } catch (Exception e) {
      throw new ResourceInitializationException(e);
View Full Code Here

Examples of org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer.releaseCasProcessor()

                      new Object[] { Thread.currentThread().getName(), container.getName() });
            }
            // Release current Cas Processor before continuing with the next Cas Processor in the
            // pipeline
            if (processor != null) {
              container.releaseCasProcessor(processor);
              if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
                UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST,
                        this.getClass().getName(), "process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,
                        "UIMA_CPM_ok_released_cp__FINEST",
                        new Object[] { Thread.currentThread().getName(), container.getName() });
View Full Code Here

Examples of org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer.releaseCasProcessor()

            // - terminates CPM when threshold is reached ( method below throws AbortCPMException)
            // - disables CasProcessor ( method below throws AbortCasProcessorException )
            // - continue, CasProcessor continues to run dispite error
            container.incrementCasProcessorErrors(e);

            container.releaseCasProcessor(processor);
            processor = null;
            if (cpm.dropCasOnException()) {
              // Cas has already been returned to the CAS pool. The policy requires to stop the
              // processing chain for this CAS and
              // to get another CAS for processing.
View Full Code Here

Examples of org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer.releaseCasProcessor()

          } catch (SkipCasException ex) {
            try {
              // Release current Cas Processor before continuing with the next Cas Processor in the
              // pipeline
              if (processor != null) {
                container.releaseCasProcessor(processor);
              }

              handleSkipCasProcessor(container, aCasObjectList,
                      (i == (processContainers.size() - 1)));
            } catch (Exception sEx) {
View Full Code Here

Examples of org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer.releaseCasProcessor()

                CPMUtils.CPM_LOG_RESOURCE_BUNDLE,
                "UIMA_CPM_release_cp__FINEST",
                new Object[] { Thread.currentThread().getName(), container.getName(),
                    processor.getClass().getName(), String.valueOf(casCache == null) });

        container.releaseCasProcessor(processor);
        processor = null;
        if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
          UIMAFramework.getLogger(this.getClass()).logrb(
                  Level.FINEST,
                  this.getClass().getName(),
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.