@Override synchronized public final IJournal getJournal() { if (journal == null) { journal = resourceManager.getJournal(timestamp); if (journal == null) { log.warn("No such journal: timestamp=" + timestamp); return null; } if (timestamp == ITx.UNISOLATED) { journal = new IsolatedActionJournal((AbstractJournal) journal); } else if (readOnly) { // disallow writes. journal = new ReadOnlyJournal((AbstractJournal) journal); } } return journal; }
((IsolatedActionJournal) getJournal()).prepareCommit();
((IsolatedActionJournal) getJournal()).prepareCommit();
@Override synchronized public final IJournal getJournal() { if (journal == null) { journal = resourceManager.getJournal(timestamp); if (journal == null) { log.warn("No such journal: timestamp=" + timestamp); return null; } if (timestamp == ITx.UNISOLATED) { journal = new IsolatedActionJournal((AbstractJournal) journal); } else if (readOnly) { // disallow writes. journal = new ReadOnlyJournal((AbstractJournal) journal); } } return journal; }
/** * Hook invoked by group commit on success/failure. It is invoked from * within the group commit for each task which joins the commit group along * either the code path where the commit succeeds or the code path where it * fails. The boolean argument indicates whether or not the group commit * succeeded. Throws exceptions are trapped and logged. */ void afterTaskHook(final boolean abort) { ((IsolatedActionJournal) getJournal()).completeTask(); }
/** * Discard any allocations for writes on unisolated indices touched by the * task for an {@link ITx#UNISOLATED} which fails, but while the task still * has its locks. */ private void abortTask() { ((IsolatedActionJournal) getJournal()).abortContext(); }
/** * Hook invoked by group commit on success/failure. It is invoked from * within the group commit for each task which joins the commit group along * either the code path where the commit succeeds or the code path where it * fails. The boolean argument indicates whether or not the group commit * succeeded. Throws exceptions are trapped and logged. */ void afterTaskHook(final boolean abort) { ((IsolatedActionJournal) getJournal()).completeTask(); }
/** * Discard any allocations for writes on unisolated indices touched by the * task for an {@link ITx#UNISOLATED} which fails, but while the task still * has its locks. */ private void abortTask() { ((IsolatedActionJournal) getJournal()).abortContext(); }