public void close() throws TeiidComponentException { if (this.tempTableStore != null) { this.tempTableStore.removeTempTables(); if (this.tempTableStore.getProcessors() != null) { for (TableProcessor proc : this.tempTableStore.getProcessors().values()) { proc.close(); } this.tempTableStore.setProcessors(null); } } this.root.close(); }
public void close() throws TeiidComponentException { if (this.tempTableStore != null) { this.tempTableStore.removeTempTables(); if (this.tempTableStore.getProcessors() != null) { for (TableProcessor proc : this.tempTableStore.getProcessors().values()) { proc.close(); } this.tempTableStore.setProcessors(null); } } this.root.close(); }
public void close() throws TeiidComponentException { if (this.tempTableStore != null) { this.tempTableStore.removeTempTables(); if (this.tempTableStore.getProcessors() != null) { for (TableProcessor proc : this.tempTableStore.getProcessors().values()) { proc.close(); } this.tempTableStore.setProcessors(null); } } this.root.close(); }
public void terminateSession(String sessionId) { // sometimes there will not be any atomic requests pending, in that // situation we still need to clear the master request from our map ClientState state = this.clientState.remove(sessionId); if (state != null) { for (RequestID reqId : state.getRequests()) { try { cancelRequest(reqId, "session terminated"); //$NON-NLS-1$ } catch (TeiidComponentException err) { LogManager.logWarning(LogConstants.CTX_DQP, err, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30026,reqId)); } } } try { transactionService.cancelTransactions(sessionId, false); } catch (XATransactionException err) { LogManager.logWarning(LogConstants.CTX_DQP, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30005,sessionId)); } if (state != null && state.sessionTables != null) { try { state.sessionTables.removeTempTables(); } catch (TeiidComponentException e) { LogManager.logWarning(LogConstants.CTX_DQP, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31277,sessionId)); } } }
public void terminateSession(String sessionId) { // sometimes there will not be any atomic requests pending, in that // situation we still need to clear the master request from our map ClientState state = this.clientState.remove(sessionId); if (state != null) { for (RequestID reqId : state.getRequests()) { try { cancelRequest(reqId, "session terminated"); //$NON-NLS-1$ } catch (TeiidComponentException err) { LogManager.logWarning(LogConstants.CTX_DQP, err, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30026,reqId)); } } } try { transactionService.cancelTransactions(sessionId, false); } catch (XATransactionException err) { LogManager.logWarning(LogConstants.CTX_DQP, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30005,sessionId)); } if (state != null && state.sessionTables != null) { try { state.sessionTables.removeTempTables(); } catch (TeiidComponentException e) { LogManager.logWarning(LogConstants.CTX_DQP, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31277,sessionId)); } } }
if (store != null) { try { store.getTempTableStore().removeTempTables(); } catch (TeiidComponentException e) { LogManager.logDetail(LogConstants.CTX_DQP, e, "Error removing session scoped temp tables"); //$NON-NLS-1$
TempTableStore tempTableStore = program.getTempTableStore(); this.getContext().setTempTableStore(tempTableStore.getParentTempTableStore()); tempTableStore.removeTempTables(); if (program.startedTxn()) { TransactionService ts = this.getContext().getTransactionServer();
TempTableStore tempTableStore = program.getTempTableStore(); this.getContext().setTempTableStore(tempTableStore.getParentTempTableStore()); tempTableStore.removeTempTables(); if (program.startedTxn()) { TransactionService ts = this.getContext().getTransactionServer();
TempTableStore tempTableStore = program.getTempTableStore(); this.getContext().setTempTableStore(tempTableStore.getParentTempTableStore()); tempTableStore.removeTempTables(); if (program.startedTxn()) { TransactionService ts = this.getContext().getTransactionServer();