public class DummyLockManager extends LockManager
lockTableLatches, nLockTables| Constructor and Description |
|---|
DummyLockManager(EnvironmentImpl envImpl) |
| Modifier and Type | Method and Description |
|---|---|
protected com.sleepycat.je.txn.LockManager.LockAttemptResult |
attemptLock(java.lang.Long nodeId,
Locker locker,
LockType type,
boolean nonBlockingRequest) |
protected void |
dumpLockTable(LockStats stats)
Dump the lock table to the lock stats.
|
protected Lock |
lookupLock(java.lang.Long nodeId) |
protected DeadlockException |
makeTimeoutMsg(java.lang.String lockOrTxn,
Locker locker,
long nodeId,
LockType type,
LockGrantType grantType,
Lock useLock,
long timeout,
long start,
long now,
DatabaseImpl database)
Create a informative lock or txn timeout message.
|
protected java.util.Set |
releaseAndFindNotifyTargets(long nodeId,
Locker locker)
Release the lock, and return the set of new owners to notify, if any.
|
protected boolean |
validateOwnership(java.lang.Long nodeId,
Locker locker,
LockType type,
boolean flushFromWaiters,
MemoryBudget mb) |
attemptLockInternal, demoteInternal, dump, dumpLockTableInternal, dumpToString, envConfigUpdate, getLockTableIndex, getLockTableIndex, getWriteOwnerLockerInternal, isLockedInternal, isOwnerInternal, isWaiterInternal, lock, lockStat, lookupLockInternal, makeTimeoutMsgInternal, nOwnersInternal, nWaitersInternal, releaseAndFindNotifyTargetsInternal, transferInternal, transferMultipleInternal, validateOwnershipInternalpublic DummyLockManager(EnvironmentImpl envImpl) throws DatabaseException
DatabaseExceptionprotected Lock lookupLock(java.lang.Long nodeId) throws DatabaseException
lookupLock in class LockManagerDatabaseExceptionLockManager.lookupLock(java.lang.Long)protected com.sleepycat.je.txn.LockManager.LockAttemptResult attemptLock(java.lang.Long nodeId,
Locker locker,
LockType type,
boolean nonBlockingRequest)
throws DatabaseException
attemptLock in class LockManagerDatabaseExceptionLockManager.attemptLock(java.lang.Long, com.sleepycat.je.txn.Locker, com.sleepycat.je.txn.LockType, boolean)protected DeadlockException makeTimeoutMsg(java.lang.String lockOrTxn, Locker locker, long nodeId, LockType type, LockGrantType grantType, Lock useLock, long timeout, long start, long now, DatabaseImpl database)
LockManagerprotected java.util.Set releaseAndFindNotifyTargets(long nodeId,
Locker locker)
throws DatabaseException
LockManagerreleaseAndFindNotifyTargets in class LockManagerDatabaseExceptionLockManager#releaseAndNotifyTargetsprotected boolean validateOwnership(java.lang.Long nodeId,
Locker locker,
LockType type,
boolean flushFromWaiters,
MemoryBudget mb)
throws DatabaseException
protected void dumpLockTable(LockStats stats) throws DatabaseException
LockManagerdumpLockTable in class LockManagerDatabaseExceptionLockManager.dumpLockTable(com.sleepycat.je.LockStats)