@Override public void setState(String stateId, InputStream istream) { try { ObjectInputStream ois = new ObjectInputStream(istream); loadTable(stateId, ois); ois.close(); } catch (Exception e) { MatTableInfo info = this.getMatTableInfo(stateId); if (!info.isUpToDate()) { info.setState(MatState.FAILED_LOAD, null); } throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30222, e); } }
@Override public void setState(String stateId, InputStream istream) { try { ObjectInputStream ois = new ObjectInputStream(istream); loadTable(stateId, ois); ois.close(); } catch (Exception e) { MatTableInfo info = this.getMatTableInfo(stateId); if (!info.isUpToDate()) { info.setState(MatState.FAILED_LOAD, null); } throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30222, e); } }
@Override public void setState(String stateId, InputStream istream) { try { ObjectInputStream ois = new ObjectInputStream(istream); loadTable(stateId, ois); ois.close(); } catch (Exception e) { MatTableInfo info = this.getMatTableInfo(stateId); if (!info.isUpToDate()) { info.setState(MatState.FAILED_LOAD, null); } throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30222, e); } }
} else { boolean load = false; if (!info.isUpToDate()) { boolean invalidate = shouldInvalidate(context.getVdb()); load = globalStore.needsLoading(tableName, globalStore.getAddress(), true, false, info.isValid() && invalidate); if (!info.isUpToDate()) { RequestWorkItem workItem = context.getWorkItem(); info.addWaiter(workItem);
} else { boolean load = false; if (!info.isUpToDate()) { boolean invalidate = shouldInvalidate(context.getVdb()); load = globalStore.needsLoading(tableName, globalStore.getAddress(), true, false, info.isValid() && invalidate); if (!info.isUpToDate()) { RequestWorkItem workItem = context.getWorkItem(); info.addWaiter(workItem);
} else { boolean load = false; if (!info.isUpToDate()) { boolean invalidate = shouldInvalidate(context.getVdb()); load = globalStore.needsLoading(tableName, globalStore.getAddress(), true, false, info.isValid() && invalidate); if (!info.isUpToDate()) { RequestWorkItem workItem = context.getWorkItem(); info.addWaiter(workItem);