private void loadViaRefresh( final CommandContext context, final String tableName, VDBMetaData vdb, MatTableInfo info) throws TeiidProcessingException, TeiidComponentException { info.setAsynchLoad(); DQPWorkContext workContext = createWorkContext(context, vdb); final String viewName = tableName.substring(RelationalPlanner.MAT_PREFIX.length()); workContext.runInContext( new Runnable() { @Override public void run() { executor.execute(REFRESH_SQL, Arrays.asList(viewName, Boolean.FALSE)); } }); }
@Override public void disconnected() { if (workContext.getSessionId() != null) { workContext.runInContext( new Runnable() { @Override public void run() { try { csr.getClientService(ILogon.class).logoff(); } catch (Exception e) { LogManager.logDetail( LogConstants.CTX_TRANSPORT, e, "Exception closing client instance"); //$NON-NLS-1$ } } }); } }