예제 #1
0
 private void checkExitConditions()
     throws TeiidComponentException, BlockedException, TeiidProcessingException {
   if (tupleSource != null) {
     Integer count = (Integer) tupleSource.nextTuple().get(0);
     insertCount += count.intValue();
     closeRequest();
     // Mark as processed
     tupleSourcesProcessed++; // This should set tupleSourcesProcessed to be the same as
     // requestsRegistered
   }
   // RESPONSE_PROCESSING: process tuple sources
   if (tupleSourcesProcessed < requestsRegistered) {
     throw BlockedException.block(
         getContext().getRequestId(), "Blocking on insert update count"); // $NON-NLS-1$
   }
 }