Package org.apache.uima.aae.InProcessCache

Examples of org.apache.uima.aae.InProcessCache.CacheEntry.resetDelegateResponded()


      Collection keyList = aStep.getAnalysisEngineKeys();
      String[] analysisEngineKeys = new String[keyList.size()];
      keyList.toArray(analysisEngineKeys);

      CacheEntry cacheEntry = getInProcessCache().getCacheEntryForCAS(aCasReferenceId);
      cacheEntry.resetDelegateResponded();
      cacheEntry.setNumberOfParallelDelegates(analysisEngineKeys.length);

      Endpoint[] endpoints = new Endpoint_impl[analysisEngineKeys.length];
      for (int i = 0; i < analysisEngineKeys.length; i++)
      {
View Full Code Here


      // one delegate processes the CAS at the same. Otherwise, check if all delegates responded before passing CAS on to the Flow Controller.
      // The idea is that all delegates processing one CAS concurrently must respond, before the CAS is allowed to move on to the next step.
      // HowManyDelegatesResponded is incremented every time a parallel delegate sends response.
      if (totalNumberOfParallelDelegatesProcessingCas == 1 || ( cacheEntry.howManyDelegatesResponded() == totalNumberOfParallelDelegatesProcessingCas) )
      {
        cacheEntry.resetDelegateResponded();
        super.invokeProcess(cas, casReferenceId, null, aMessageContext, null);
      }

    }
    catch ( Exception e)
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.