@Override protected String getTaskName() { return super.getTaskName()+"#"+trial; }
setupLoggingContext(); final T ret = call2(); clearLoggingContext();
/** * Asserts that the <i>resource</i> is one of the resource(s) declared to * the constructor. This is used to prevent tasks from accessing resources * that they did not declare (and on which they may not hold a lock). * * @param resource * A resource name. * * @return The resource name. * * @exception IllegalStateException * if the <i>resource</i> was not declared to the * constructor. */ protected String assertResource(final String resource) { if (isResource(resource)) return resource; throw new IllegalStateException("Not declared: task=" + getTaskName() + ", resource=" + resource + " is not in " + Arrays.toString(this.resource)); }
throw new ResubmitException(toString()); return doTask(); clearIndexCache(); return doUnisolatedReadWriteTask();
assertUnisolated(); assertResource(name); assertRunning(); final IIndex view = getUnisolatedIndexView(name, btree);
assertResource(name); assertRunning(); final IJournal tmp = getJournal(); return getUnisolatedIndexView(name, (BTree) ndx);
assertUnisolated(); assertRunning(); ((IsolatedActionJournal) getJournal()).prepareCommit();
/** * Wraps up the execution of {@link AbstractTask#doTask()}. */ @Override public T call() throws Exception { // invoke on the outer class. try { delegate.nanoTime_beginWork = System.nanoTime(); tx.lock.lock(); try { return delegate.doTask(); } finally { tx.lock.unlock(); } } finally { delegate.nanoTime_finishedWork = System.nanoTime(); /* * Release hard references to the named indices. The backing * indices are reading from the ground state identified by the * start time of the ReadWrite transaction. */ delegate.clearIndexCache(); } }
entry.getValue().afterTaskHook(true/* abort */); } catch (Throwable t) { log.error(t, t);
afterActionTask.call();
throw new ResubmitException(toString()); return doTask(); clearIndexCache(); return doUnisolatedReadWriteTask();
assertUnisolated(); assertResource(name); assertRunning(); final IIndex view = getUnisolatedIndexView(name, btree);
assertResource(name); assertRunning(); final IJournal tmp = getJournal(); return getUnisolatedIndexView(name, (BTree) ndx);
/** * Asserts that the <i>resource</i> is one of the resource(s) declared to * the constructor. This is used to prevent tasks from accessing resources * that they did not declare (and on which they may not hold a lock). * * @param resource * A resource name. * * @return The resource name. * * @exception IllegalStateException * if the <i>resource</i> was not declared to the * constructor. */ protected String assertResource(final String resource) { if (isResource(resource)) return resource; throw new IllegalStateException("Not declared: task=" + getTaskName() + ", resource=" + resource + " is not in " + Arrays.toString(this.resource)); }
assertUnisolated(); assertRunning(); ((IsolatedActionJournal) getJournal()).prepareCommit();
/** * Wraps up the execution of {@link AbstractTask#doTask()}. */ @Override public T call() throws Exception { // invoke on the outer class. try { delegate.nanoTime_beginWork = System.nanoTime(); tx.lock.lock(); try { return delegate.doTask(); } finally { tx.lock.unlock(); } } finally { delegate.nanoTime_finishedWork = System.nanoTime(); /* * Release hard references to the named indices. The backing * indices are reading from the ground state identified by the * start time of the ReadWrite transaction. */ delegate.clearIndexCache(); } }
entry.getValue().afterTaskHook(true/* abort */); } catch (Throwable t) { log.error(t, t);