@Override public String getRequestId() { return this.commandContext.getRequestId(); }
@Override public String getRequestId() { return this.commandContext.getRequestId(); }
@Override public String getRequestId() { return this.commandContext.getRequestId(); }
private void checkExitConditions() throws TeiidComponentException, BlockedException, TeiidProcessingException { if (tupleSource != null) { if (mode == Mode.BATCH || mode == Mode.ITERATOR) { List<?> tuple = null; while ((tuple = tupleSource.nextTuple()) != null) { Integer count = (Integer)tuple.get(0); if (count > 0 || count == Statement.SUCCESS_NO_INFO) { insertCount++; } } } else { 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$ } }
private void checkExitConditions() throws TeiidComponentException, BlockedException, TeiidProcessingException { if (tupleSource != null) { if (mode == Mode.BATCH || mode == Mode.ITERATOR) { List<?> tuple = null; while ((tuple = tupleSource.nextTuple()) != null) { Integer count = (Integer)tuple.get(0); if (count > 0 || count == Statement.SUCCESS_NO_INFO) { insertCount++; } } } else { 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$ } }
private void checkExitConditions() throws TeiidComponentException, BlockedException, TeiidProcessingException { if (tupleSource != null) { if (mode == Mode.BATCH || mode == Mode.ITERATOR) { List<?> tuple = null; while ((tuple = tupleSource.nextTuple()) != null) { Integer count = (Integer)tuple.get(0); if (count > 0 || count == Statement.SUCCESS_NO_INFO) { insertCount++; } } } else { 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$ } }
return pullBatch(); throw BlockedException.block(getContext().getRequestId(), "Blocking on source request(s)."); //$NON-NLS-1$
return pullBatch(); throw BlockedException.block(getContext().getRequestId(), "Blocking on source request(s)."); //$NON-NLS-1$
return pullBatch(); throw BlockedException.block(getContext().getRequestId(), "Blocking on source request(s)."); //$NON-NLS-1$
throw new TeiidProcessingException(QueryPlugin.Event.TEIID30160, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30160, this.context.getRequestId()));
throw new TeiidProcessingException(QueryPlugin.Event.TEIID30160, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30160, this.context.getRequestId()));
throw new TeiidProcessingException(QueryPlugin.Event.TEIID30160, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30160, this.context.getRequestId()));
throw BlockedException.block(getContext().getRequestId(), "Blocking on union source.", getID()); //$NON-NLS-1$ } else { boolean openedAny = false;
throw BlockedException.block(getContext().getRequestId(), "Blocking on union source.", getID()); //$NON-NLS-1$ } else { boolean openedAny = false;
CommandContext context = this.getContext(); if (context != null && context.isCancelled()) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID30160, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30160, getContext().getRequestId()));
CommandContext context = this.getContext(); if (context != null && context.isCancelled()) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID30160, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30160, getContext().getRequestId()));
CommandContext context = this.getContext(); if (context != null && context.isCancelled()) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID30160, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30160, getContext().getRequestId()));
CommandContext context = this.getContext(); if (context != null && context.isCancelled()) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID30160, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30160, getContext().getRequestId()));
CommandContext context = this.getContext(); if (context != null && context.isCancelled()) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID30160, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30160, getContext().getRequestId()));
CommandContext context = this.getContext(); if (context != null && context.isCancelled()) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID30160, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30160, getContext().getRequestId()));