public class DummyLockManager extends LockManager
EnvironmentConfig.ENV_IS_LOCKING is false.afterLockHook| Modifier and Type | Method and Description |
|---|---|
LockType |
getOwnedLockType(Long lsn,
Locker locker)
Returns the LockType if the given locker owns a lock on the given node,
or null if the lock is not owned.
|
Set<LockInfo> |
getOwners(Long lsn)
Returns the Lockers that own a lock on the given LSN.
|
List<LockInfo> |
getWaiters(Long lsn)
Returns the Lockers that wait on a lock on the given LSN.
|
Locker |
getWriteOwnerLocker(Long lsn) |
boolean |
isLockUncontended(Long lsn) |
boolean |
ownsOrSharesLock(Locker locker,
Long lsn) |
LockAttemptResult |
stealLock(Long lsn,
Locker locker,
LockType lockType) |
dump, envConfigUpdate, loadStats, lock, releasepublic Set<LockInfo> getOwners(Long lsn)
LockManagergetOwners in class LockManagerpublic List<LockInfo> getWaiters(Long lsn)
LockManagergetWaiters in class LockManagerpublic LockType getOwnedLockType(Long lsn, Locker locker)
LockManagergetOwnedLockType in class LockManagerpublic boolean isLockUncontended(Long lsn)
isLockUncontended in class LockManagerpublic boolean ownsOrSharesLock(Locker locker, Long lsn)
ownsOrSharesLock in class LockManagerpublic Locker getWriteOwnerLocker(Long lsn) throws DatabaseException
getWriteOwnerLocker in class LockManagerDatabaseExceptionpublic LockAttemptResult stealLock(Long lsn, Locker locker, LockType lockType) throws DatabaseException
stealLock in class LockManagerDatabaseExceptionCopyright © 2024. All rights reserved.