com.sleepycat.je.txn
Class PreparedTxn

java.lang.Object
  extended by com.sleepycat.je.txn.Locker
      extended by com.sleepycat.je.txn.Txn
          extended by com.sleepycat.je.txn.PreparedTxn
All Implemented Interfaces:
Loggable

public class PreparedTxn
extends Txn

A PreparedTxn is used at recovery for processing a TXN_PREPARE log entry. It is provides essentially the same functionality as a TXN but lets the calling code set the transaction id.


Field Summary
 
Fields inherited from class com.sleepycat.je.txn.Txn
abortLsn, ACCUMULATED_LIMIT, commitLsn, deletedDatabases, firstLoggedLsn, lastLoggedLsn, repContext, undoDatabases
 
Fields inherited from class com.sleepycat.je.txn.Locker
defaultNoWait, deleteInfo, envImpl, handleLockToHandleMap, handleToHandleLockMap, id, lockManager, readUncommittedDefault, thread
 
Method Summary
static PreparedTxn createPreparedTxn(EnvironmentImpl envImpl, TransactionConfig config, long mandatedId)
           
protected  long generateId(TxnManager txnManager, long mandatedId)
          PrepareTxns use the mandated id.
 
Methods inherited from class com.sleepycat.je.txn.Txn
abort, abort, abort, addBuddy, addLock, addLogInfo, checkPreempted, checkState, cleanupDatabaseImpls, clearWriteLocks, close, collectStats, commit, commit, commit, createAutoTxn, createdNode, createLocalAutoTxn, createLocalTxn, createUserTxn, dumpLog, getAbortLsn, getBudgetedMemorySize, getCommitDurability, getCommitToken, getDefaultDurability, getExplicitDurabilityConfigured, getExplicitSyncConfigured, getFirstActiveLsn, getImportunate, getLastLsn, getLogSize, getPrepared, getReadLockIds, getReplicatorNodeId, getTransactionId, getTxnLocker, getWriteLockIds, getWriteLockInfo, isAutoTxn, isClosed, isHandleLockTransferrable, isOnlyAbortable, isReadCommittedIsolation, isRolledBack, isSerializableIsolation, isSuspended, isTransactional, isValid, lockingRequired, lockInternal, logicalEquals, markDeleteAtTxnEnd, moveWriteToReadLock, newNonTxnLocker, nonTxnOperationEnd, operationEnd, postLogAbortHook, postLogCommitHook, preLogCommitHook, prepare, propagatePostCommitException, readFromLog, registerCursor, releaseNonTxnLocks, releaseWriteLocks, removeBuddy, removeLock, setDeletedDatabaseState, setHandleLockOwner, setImportunate, setOnlyAbortable, setPrepared, setRollback, setSuspended, txnBeginHook, undo, unRegisterCursor, updateLoggedForTxn, writeToLog
 
Methods inherited from class com.sleepycat.je.txn.Locker
addDeleteInfo, addToHandleMaps, close, demoteLock, dumpLockTable, getDefaultNoWait, getId, getInitialLockTimeout, getLockTimeout, getPreemptable, getTxnStartMillis, getTxnTimeout, getWaitingFor, isPreempted, isReadUncommittedDefault, isReplicationDefined, isTimedOut, lock, nonBlockingLock, openCursorHook, operationEnd, operationEnd, releaseLock, setClosingLocker, setLockTimeout, setPreemptable, setPreempted, setTxnTimeout, setWaitingFor, sharesLocksWith, throwIfPreempted, toString, transferHandleLock, transferHandleLockToHandle, unregisterHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createPreparedTxn

public static PreparedTxn createPreparedTxn(EnvironmentImpl envImpl,
                                            TransactionConfig config,
                                            long mandatedId)
                                     throws DatabaseException
Throws:
DatabaseException

generateId

protected long generateId(TxnManager txnManager,
                          long mandatedId)
PrepareTxns use the mandated id.

Overrides:
generateId in class Txn


Copyright (c) 2004-2010 Oracle. All rights reserved.