@Override public String getDescription() { return repo.getDescription(); } }
@Override public String getDescription() { return repo.getDescription(); }
@Override public void undo(long tid, T environment) throws Exception { Span span = Trace.trace(new TInfo(traceId, parentId), repo.getDescription()); try { repo.undo(tid, environment); } finally { span.stop(); } }
@Override public long isReady(long tid, T environment) throws Exception { Span span = Trace.trace(new TInfo(traceId, parentId), repo.getDescription()); try { return repo.isReady(tid, environment); } finally { span.stop(); } }
@Override public Repo<T> call(long tid, T environment) throws Exception { Span span = Trace.trace(new TInfo(traceId, parentId), repo.getDescription()); try { Repo<T> result = repo.call(tid, environment); if (result == null) return null; return new TraceRepo<>(result); } finally { span.stop(); } }
public void seedTransaction(long tid, Repo<T> repo, boolean autoCleanUp) { store.reserve(tid); try { if (store.getStatus(tid) == TStatus.NEW) { if (store.top(tid) == null) { try { store.push(tid, repo); } catch (StackOverflowException e) { // this should not happen throw new RuntimeException(e); } } if (autoCleanUp) store.setProperty(tid, AUTO_CLEAN_PROP, autoCleanUp); store.setProperty(tid, DEBUG_PROP, repo.getDescription()); store.setStatus(tid, TStatus.IN_PROGRESS); } } finally { store.unreserve(tid, 0); } }
@Override public String getDescription() { return repo.getDescription(); } }
@Override public String getDescription() { return repo.getDescription(); }
@Override public String getDescription() { return repo.getDescription(); }
@Override public long isReady(long tid, T environment) throws Exception { Span span = Trace.trace(tinfo, repo.getDescription()); try { return repo.isReady(tid, environment); } finally { span.stop(); } }
@Override public void undo(long tid, T environment) throws Exception { Span span = Trace.trace(tinfo, repo.getDescription()); try { repo.undo(tid, environment); } finally { span.stop(); } }
@Override public Repo<T> call(long tid, T environment) throws Exception { Span span = Trace.trace(tinfo, repo.getDescription()); try { Repo<T> result = repo.call(tid, environment); if (result == null) return result; return new TraceRepo<T>(result); } finally { span.stop(); } }
@Override public long isReady(long tid, T environment) throws Exception { Span span = Trace.trace(new TInfo(traceId, parentId), repo.getDescription()); try { return repo.isReady(tid, environment); } finally { span.stop(); } }
@Override public void undo(long tid, T environment) throws Exception { Span span = Trace.trace(new TInfo(traceId, parentId), repo.getDescription()); try { repo.undo(tid, environment); } finally { span.stop(); } }
@Override public Repo<T> call(long tid, T environment) throws Exception { Span span = Trace.trace(new TInfo(traceId, parentId), repo.getDescription()); try { Repo<T> result = repo.call(tid, environment); if (result == null) return null; return new TraceRepo<>(result); } finally { span.stop(); } }
public void seedTransaction(long tid, Repo<T> repo, boolean autoCleanUp) { store.reserve(tid); try { if (store.getStatus(tid) == TStatus.NEW) { if (store.top(tid) == null) { try { store.push(tid, repo); } catch (StackOverflowException e) { // this should not happen throw new RuntimeException(e); } } if (autoCleanUp) store.setProperty(tid, AUTO_CLEAN_PROP, Boolean.valueOf(autoCleanUp)); store.setProperty(tid, DEBUG_PROP, repo.getDescription()); store.setStatus(tid, TStatus.IN_PROGRESS); } } finally { store.unreserve(tid, 0); } }