Examples of incrementSubordinateCasInPlayCount()


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

          //  The input CAS (parent) will be held by the aggregate until all of its
          //  subordinate CASes are fully processed. Only then, the aggregate can return
          //  it back to the client
          synchronized( inputCasCacheEntry )
          {
            inputCasCacheEntry.incrementSubordinateCasInPlayCount();
          }
          if ( ((AggregateAnalysisEngineController)getController()).sendRequestToReleaseCas() )
          {
            try
            {
View Full Code Here

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

          if ( inputCasCacheEntry != null )
          {
            synchronized( inputCasCacheEntry )
            {
//              System.out.println("++++++++ Incrementing Delegate:"+casReferenceId+" Count For Input Cas::"+subordinateCasCacheEntry.getInputCasReferenceId());           
              inputCasCacheEntry.incrementSubordinateCasInPlayCount();
            }
          }
        }
        UIMAFramework.getLogger(CLASS_NAME).logrb(Level.FINE, CLASS_NAME.getName(),
                    "handleProcessRequestWithCASReference", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_new_cas__FINE",
View Full Code Here

Examples of org.apache.uima.aae.controller.LocalCache.CasStateEntry.incrementSubordinateCasInPlayCount()

            cacheEntry.setInputCasReferenceId(inputCasId);
          }
          CasStateEntry parentCasStateEntry =
            parentController.getLocalCache().lookupEntry(inputCasId);
          if ( parentCasStateEntry != null ) {
            parentCasStateEntry.incrementSubordinateCasInPlayCount();
            parentCasStateEntry.incrementOutstandingFlowCounter();
          }
        }
      }
      // Send CAS to a given reply endpoint
View Full Code Here

Examples of org.apache.uima.aae.controller.LocalCache.CasStateEntry.incrementSubordinateCasInPlayCount()

            cacheEntry.setInputCasReferenceId(inputCasId);
          }
          CasStateEntry parentCasStateEntry =
            parentController.getLocalCache().lookupEntry(inputCasId);
          if ( parentCasStateEntry != null ) {
            parentCasStateEntry.incrementSubordinateCasInPlayCount();
          }
        }
      }
      // Send CAS to a given reply endpoint
      sendVMMessage(mType, replyEndpoint, cacheEntry);
View Full Code Here

Examples of org.apache.uima.aae.controller.LocalCache.CasStateEntry.incrementSubordinateCasInPlayCount()

          String parentCasReferenceId = message
                  .getStringProperty(AsynchAEMessage.InputCasReference);
          // Fetch parent CAS entry from the local cache
          CasStateEntry parentEntry = controller.getLocalCache().lookupEntry(parentCasReferenceId);
          // increment number of child CASes this parent has in play
          parentEntry.incrementSubordinateCasInPlayCount();
        } catch (Exception e) {
          if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.WARNING)) {
           
            UIMAFramework.getLogger(CLASS_NAME).logrb(Level.WARNING, CLASS_NAME.getName(),
                    "onMessage", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE,
View Full Code Here

Examples of org.apache.uima.aae.controller.LocalCache.CasStateEntry.incrementSubordinateCasInPlayCount()

          String parentCasReferenceId = message
                  .getStringProperty(AsynchAEMessage.InputCasReference);
          // Fetch parent CAS entry from the local cache
          CasStateEntry parentEntry = controller.getLocalCache().lookupEntry(parentCasReferenceId);
          // increment number of child CASes this parent has in play
          parentEntry.incrementSubordinateCasInPlayCount();
        } catch (Exception e) {
          if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.WARNING)) {
            UIMAFramework.getLogger(CLASS_NAME).logrb(Level.WARNING, CLASS_NAME.getName(),
                    "onMessage", JmsConstants.JMS_LOG_RESOURCE_BUNDLE,
                    "UIMAJMS_exception__WARNING", new Object[] { JmsConstants.threadName(), e });
View Full Code Here

Examples of org.apache.uima.aae.controller.LocalCache.CasStateEntry.incrementSubordinateCasInPlayCount()

          }
          // Update counters in the parents controller local cache.
          CasStateEntry parentCasStateEntry =
            parentController.getLocalCache().lookupEntry(inputCasId);
          if ( parentCasStateEntry != null ) {
            parentCasStateEntry.incrementSubordinateCasInPlayCount();
            parentCasStateEntry.incrementOutstandingFlowCounter();
          }
        }
      }
      // Send CAS to a given reply endpoint
View Full Code Here

Examples of org.apache.uima.aae.controller.LocalCache.CasStateEntry.incrementSubordinateCasInPlayCount()

          String parentCasReferenceId = message
                  .getStringProperty(AsynchAEMessage.InputCasReference);
          // Fetch parent CAS entry from the local cache
          CasStateEntry parentEntry = controller.getLocalCache().lookupEntry(parentCasReferenceId);
          // increment number of child CASes this parent has in play
          parentEntry.incrementSubordinateCasInPlayCount();
          //  increment a counter that counts number of child CASes that have no
          //  flow object yet. The flow object is created for each child CAS from
          //  the parent flow object. The method below will actually acquire a
          //  permit from a binary semaphore to force the parent to block until
          //  the last of its children acquires its Flow object.
View Full Code Here

Examples of org.apache.uima.aae.controller.LocalCache.CasStateEntry.incrementSubordinateCasInPlayCount()

          }
          // Update counters in the parents controller local cache.
          CasStateEntry parentCasStateEntry =
            parentController.getLocalCache().lookupEntry(inputCasId);
          if ( parentCasStateEntry != null ) {
            parentCasStateEntry.incrementSubordinateCasInPlayCount();
            parentCasStateEntry.incrementOutstandingFlowCounter();
          }
        }
      }
      // Send CAS to a given reply endpoint
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.