| java.lang.Object com.sleepycat.je.txn.Locker com.sleepycat.je.txn.BasicLocker
All known Subclasses: com.sleepycat.je.txn.ThreadLocker, com.sleepycat.je.txn.BuddyLocker,
BasicLocker | public class BasicLocker extends Locker (Code) | | A concrete Locker that simply tracks locks and releases them when
operationEnd is called.
|
Method Summary | |
void | addLock(Long nodeId, LockType type, LockGrantType grantStatus) Add a lock to set owned by this transaction. | protected void | checkState(boolean ignoreCalledByAbort) | public LockStats | collectStats(LockStats stats) | public boolean | createdNode(long nodeId) Always false for this txn. | protected long | generateId(TxnManager txnManager) BasicLockers always have a fixed id, because they are never used for
recovery. | public long | getAbortLsn(long nodeId) | public long | getOwnerAbortLsn(long nodeId) Get the abort LSN for this node in the txn that owns the lock on this
node. | public Txn | getTxnLocker() No transactional locker is available. | public WriteLockInfo | getWriteLockInfo(long nodeId) | public Locker | getWriteOwnerLocker(long nodeId) Get the txn that owns the lock on this node. | public boolean | isReadCommittedIsolation() Is never read-committed isolation. | public boolean | isSerializableIsolation() Is never serializable isolation. | public boolean | isTransactional() Is never transactional. | LockResult | lockInternal(long nodeId, LockType lockType, boolean noWait, DatabaseImpl database) | public void | markDeleteAtTxnEnd(DatabaseImpl db, boolean deleteAtCommit) | void | moveWriteToReadLock(long nodeId, Lock lock) A lock is being demoted. | public Locker | newNonTxnLocker() Creates a new instance of this txn for the same environment. | public void | operationEnd() Release locks at the end of the transaction. | public void | operationEnd(boolean operationOK) Release locks at the end of the transaction. | public void | registerCursor(CursorImpl cursor) This txn doesn't store cursors. | public void | releaseNonTxnLocks() Releases all locks, since all locks held by this locker are
non-transactional. | void | removeLock(long nodeId) Remove a lock from the set owned by this txn. | public void | setHandleLockOwner(boolean operationOK, Database dbHandle, boolean dbIsClosing) Transfer any MapLN locks to the db handle. | public void | unRegisterCursor(CursorImpl cursor) This txn doesn't store cursors. |
generateId | protected long generateId(TxnManager txnManager)(Code) | | BasicLockers always have a fixed id, because they are never used for
recovery.
|
getOwnerAbortLsn | public long getOwnerAbortLsn(long nodeId) throws DatabaseException(Code) | | Get the abort LSN for this node in the txn that owns the lock on this
node. Return null if there's no owning txn found.
|
getTxnLocker | public Txn getTxnLocker()(Code) | | No transactional locker is available.
|
getWriteOwnerLocker | public Locker getWriteOwnerLocker(long nodeId) throws DatabaseException(Code) | | Get the txn that owns the lock on this node. Return null if there's no
owning txn found.
|
isReadCommittedIsolation | public boolean isReadCommittedIsolation()(Code) | | Is never read-committed isolation.
|
isSerializableIsolation | public boolean isSerializableIsolation()(Code) | | Is never serializable isolation.
|
isTransactional | public boolean isTransactional()(Code) | | Is never transactional.
|
moveWriteToReadLock | void moveWriteToReadLock(long nodeId, Lock lock)(Code) | | A lock is being demoted. Move it from the write collection into the read
collection.
|
newNonTxnLocker | public Locker newNonTxnLocker() throws DatabaseException(Code) | | Creates a new instance of this txn for the same environment. No
transactional locks are held by this object, so no locks are retained.
|
operationEnd | public void operationEnd(boolean operationOK) throws DatabaseException(Code) | | Release locks at the end of the transaction.
|
releaseNonTxnLocks | public void releaseNonTxnLocks() throws DatabaseException(Code) | | Releases all locks, since all locks held by this locker are
non-transactional.
|
removeLock | void removeLock(long nodeId) throws DatabaseException(Code) | | Remove a lock from the set owned by this txn.
|
setHandleLockOwner | public void setHandleLockOwner(boolean operationOK, Database dbHandle, boolean dbIsClosing) throws DatabaseException(Code) | | Transfer any MapLN locks to the db handle.
|
Methods inherited from com.sleepycat.je.txn.Locker | public void addDeleteInfo(BIN bin, Key deletedKey) throws DatabaseException(Code)(Java Doc) abstract void addLock(Long nodeId, LockType type, LockGrantType grantStatus) throws DatabaseException(Code)(Java Doc) public void addToHandleMaps(Long handleLockId, Database databaseHandle)(Code)(Java Doc) abstract protected void checkState(boolean ignoreCalledByAbort) throws DatabaseException(Code)(Java Doc) abstract public LockStats collectStats(LockStats stats) throws DatabaseException(Code)(Java Doc) abstract public boolean createdNode(long nodeId) throws DatabaseException(Code)(Java Doc) public void demoteLock(long nodeId) throws DatabaseException(Code)(Java Doc) public void dumpLockTable() throws DatabaseException(Code)(Java Doc) abstract protected long generateId(TxnManager txnManager)(Code)(Java Doc) abstract public long getAbortLsn(long nodeId) throws DatabaseException(Code)(Java Doc) public boolean getDefaultNoWait()(Code)(Java Doc) public long getId()(Code)(Java Doc) public synchronized long getLockTimeout()(Code)(Java Doc) abstract public Txn getTxnLocker()(Code)(Java Doc) long getTxnStartMillis()(Code)(Java Doc) public long getTxnTimeOut()(Code)(Java Doc) Lock getWaitingFor()(Code)(Java Doc) abstract public WriteLockInfo getWriteLockInfo(long nodeId) throws DatabaseException(Code)(Java Doc) public boolean isHandleLockTransferrable()(Code)(Java Doc) abstract public boolean isReadCommittedIsolation()(Code)(Java Doc) public boolean isReadUncommittedDefault()(Code)(Java Doc) abstract public boolean isSerializableIsolation()(Code)(Java Doc) public boolean isTimedOut() throws DatabaseException(Code)(Java Doc) abstract public boolean isTransactional()(Code)(Java Doc) public LockResult lock(long nodeId, LockType lockType, boolean noWait, DatabaseImpl database) throws LockNotGrantedException, DeadlockException, DatabaseException(Code)(Java Doc) abstract LockResult lockInternal(long nodeId, LockType lockType, boolean noWait, DatabaseImpl database) throws DeadlockException, DatabaseException(Code)(Java Doc) abstract public void markDeleteAtTxnEnd(DatabaseImpl db, boolean deleteAtCommit) throws DatabaseException(Code)(Java Doc) abstract void moveWriteToReadLock(long nodeId, Lock lock)(Code)(Java Doc) abstract public Locker newNonTxnLocker() throws DatabaseException(Code)(Java Doc) public LockResult nonBlockingLock(long nodeId, LockType lockType, DatabaseImpl database) throws DatabaseException(Code)(Java Doc) abstract public void operationEnd() throws DatabaseException(Code)(Java Doc) abstract public void operationEnd(boolean operationOK) throws DatabaseException(Code)(Java Doc) public void operationEnd(OperationStatus status) throws DatabaseException(Code)(Java Doc) abstract public void registerCursor(CursorImpl cursor) throws DatabaseException(Code)(Java Doc) public void releaseLock(long nodeId) throws DatabaseException(Code)(Java Doc) abstract public void releaseNonTxnLocks() throws DatabaseException(Code)(Java Doc) abstract void removeLock(long nodeId) throws DatabaseException(Code)(Java Doc) abstract public void setHandleLockOwner(boolean operationOK, Database dbHandle, boolean dbIsClosing) throws DatabaseException(Code)(Java Doc) public synchronized void setLockTimeout(long timeout)(Code)(Java Doc) void setOnlyAbortable()(Code)(Java Doc) public synchronized void setTxnTimeout(long timeout)(Code)(Java Doc) void setWaitingFor(Lock lock)(Code)(Java Doc) public boolean sharesLocksWith(Locker other)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void transferHandleLock(Database dbHandle, Locker destLocker, boolean demoteToRead) throws DatabaseException(Code)(Java Doc) void transferHandleLockToHandle(Database dbHandle) throws DatabaseException(Code)(Java Doc) abstract public void unRegisterCursor(CursorImpl cursor) throws DatabaseException(Code)(Java Doc) void unregisterHandle(Database dbHandle)(Code)(Java Doc)
|
|
|