@Override public void close() { exec.close(); } @Override
@Override public void execute() throws TranslatorException { exec.execute(); } @Override
@Override public void cancel() throws TranslatorException { exec.cancel(); } @Override
private List executeCommand(Command command, RuntimeMetadata runtimeMetadata, boolean close) throws TranslatorException { Execution exec = connector.createExecution(command, this.executionContext, runtimeMetadata, this.connectionFactory); exec.execute(); List results = readResultsFromExecution(exec); if (close) { exec.close(); } return results; }
@Override public void close() { exec.close(); } @Override
@Override public void execute() throws TranslatorException { exec.execute(); } @Override
@Override public void cancel() throws TranslatorException { exec.cancel(); } @Override
@Override public void close() { exec.close(); } @Override
@Override public void execute() throws TranslatorException { exec.execute(); } @Override
@Override public void cancel() throws TranslatorException { exec.cancel(); } @Override
@Override public void cancel(boolean abnormal) { if (lastBatch) { return; } try { if (this.isCancelled.compareAndSet(false, true)) { LogManager.logDetail(LogConstants.CTX_CONNECTOR, new Object[] {this.id, "Processing CANCEL request"}); //$NON-NLS-1$ Execution ex = this.execution; if(ex != null) { if (abnormal) { this.manager.logSRCCommand(this.requestMsg, this.securityContext, Event.CANCEL, -1l, null); } ex.cancel(); LogManager.logDetail(LogConstants.CTX_CONNECTOR, QueryPlugin.Util.getString("DQPCore.The_atomic_request_has_been_cancelled", this.id)); //$NON-NLS-1$ } } } catch (TranslatorException e) { LogManager.logWarning(LogConstants.CTX_CONNECTOR, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30024, this.id)); } }
@Override public void cancel(boolean abnormal) { if (lastBatch) { return; } try { if (this.isCancelled.compareAndSet(false, true)) { LogManager.logDetail(LogConstants.CTX_CONNECTOR, new Object[] {this.id, "Processing CANCEL request"}); //$NON-NLS-1$ Execution ex = this.execution; if(ex != null) { if (abnormal) { this.manager.logSRCCommand(this, this.requestMsg, this.securityContext, Event.CANCEL, -1l, null); } ex.cancel(); LogManager.logDetail(LogConstants.CTX_CONNECTOR, QueryPlugin.Util.getString("DQPCore.The_atomic_request_has_been_cancelled", this.id)); //$NON-NLS-1$ } } } catch (TranslatorException e) { LogManager.logWarning(LogConstants.CTX_CONNECTOR, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30024, this.id)); } }
@Override public void cancel(boolean abnormal) { if (lastBatch) { return; } try { if (this.isCancelled.compareAndSet(false, true)) { LogManager.logDetail(LogConstants.CTX_CONNECTOR, new Object[] {this.id, "Processing CANCEL request"}); //$NON-NLS-1$ Execution ex = this.execution; if(ex != null) { if (abnormal) { this.manager.logSRCCommand(this, this.requestMsg, this.securityContext, Event.CANCEL, -1l, null); } ex.cancel(); LogManager.logDetail(LogConstants.CTX_CONNECTOR, QueryPlugin.Util.getString("DQPCore.The_atomic_request_has_been_cancelled", this.id)); //$NON-NLS-1$ } } } catch (TranslatorException e) { LogManager.logWarning(LogConstants.CTX_CONNECTOR, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30024, this.id)); } }