@Override protected void deactivateTx(final TxState state) { super.deactivateTx(state); // if (TimestampUtility.isReadWriteTx(state.tx)) { /* * Unregister transactions. */ final Tx localState = journal.getLocalTransactionManager() .getTx(state.tx); if (localState != null) { journal.getLocalTransactionManager().deactivateTx(localState); } } }
/** * Returns the next timestamp from the {@link ILocalTransactionManager}. * <p> * Note: This is a convenience method. The implementation of this method is * delegated to the object returned by {@link #getTransactionService()}. * * @deprecated This is here for historical reasons and is only used by the * test suite. Use {@link #getLocalTransactionManager()} and * {@link ITransactionService#nextTimestamp()}. * * @see ITransactionService#nextTimestamp() */ final public long nextTimestamp() { return localTransactionManager.nextTimestamp(); }
/** * Extended to shutdown the embedded transaction service. */ @Override public void shutdownNow() { ((JournalTransactionService) getTransactionService()) .shutdownNow(); super.shutdownNow(); }
.getTx(tx).getReadsOnCommitTime();
.getTransactionService(); if (transactionManager.getTx(timestamp) == null) { tx = transactionManager.getTx(timestamp);
public ITransactionService getTransactionService() { // return getTransactionManager().getTransactionService(); return localTransactionManager.getTransactionService(); }
/** * Extended to shutdown the embedded transaction service. */ @Override public void shutdown() { ((JournalTransactionService) getTransactionService()) .shutdown(); super.shutdown(); }
/** * Exposed to {@link DataService#singlePhaseCommit(long)} */ @Override public void deactivateTx(final Tx localState) { super.deactivateTx(localState); }
.attach(localTransactionManager.getCounters());
localTransactionManager.activateTx(this);
.getTx(tx).getReadsOnCommitTime();
.getTransactionService(); if (transactionManager.getTx(timestamp) == null) { tx = transactionManager.getTx(timestamp);
public ITransactionService getTransactionService() { // return getTransactionManager().getTransactionService(); return localTransactionManager.getTransactionService(); }
/** * Extended to shutdown the embedded transaction service. */ @Override public void shutdown() { ((JournalTransactionService) getTransactionService()) .shutdown(); super.shutdown(); }
/** * Exposed to {@link DataService#singlePhaseCommit(long)} */ @Override public void deactivateTx(final Tx localState) { super.deactivateTx(localState); }
.attach(localTransactionManager.getCounters());
localTransactionManager.activateTx(this);
/** * Extended to shutdown the embedded transaction service. */ @Override public void shutdownNow() { ((JournalTransactionService) getTransactionService()) .shutdownNow(); super.shutdownNow(); }
final Tx localState = journal.getLocalTransactionManager().getTx( state.tx);
@Override protected void deactivateTx(final TxState state) { super.deactivateTx(state); // if (TimestampUtility.isReadWriteTx(state.tx)) { /* * Unregister transactions. */ final Tx localState = journal.getLocalTransactionManager() .getTx(state.tx); if (localState != null) { journal.getLocalTransactionManager().deactivateTx(localState); } } }