@Override public void cancel() throws TranslatorException { exec.cancel(); } @Override
@Override public void cancel() throws TranslatorException { exec.cancel(); } @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, 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.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)); } }