com.sleepycat.je.rep.txn
Class MasterThreadLocker

java.lang.Object
  extended by com.sleepycat.je.txn.Locker
      extended by com.sleepycat.je.txn.BasicLocker
          extended by com.sleepycat.je.txn.ThreadLocker
              extended by com.sleepycat.je.rep.txn.MasterThreadLocker

public class MasterThreadLocker
extends ThreadLocker

A MasterThreadLocker is used with a user initiated non-transactional operation on a Master. The only purpose of this class is to enforce the use of replication-defined lockers for replicated operations by defining the isReplicationDefined method.


Field Summary
 
Fields inherited from class com.sleepycat.je.txn.Locker
defaultNoWait, deleteInfo, envImpl, handleLockToHandleMap, handleToHandleLockMap, id, lockManager, readUncommittedDefault, thread
 
Constructor Summary
MasterThreadLocker(RepImpl repImpl)
           
 
Method Summary
 boolean isReplicationDefined()
          Used for debugging checks to ensure that replication-defined lockers are used for accessing replicated databases.
 
Methods inherited from class com.sleepycat.je.txn.ThreadLocker
checkState, createThreadLocker, newNonTxnLocker, sharesLocksWith
 
Methods inherited from class com.sleepycat.je.txn.BasicLocker
addLock, collectStats, createBasicLocker, createBasicLocker, createdNode, generateId, getAbortLsn, getTxnLocker, getWriteLockInfo, getWriteOwnerLocker, isReadCommittedIsolation, isSerializableIsolation, isTransactional, lockingRequired, lockInternal, markDeleteAtTxnEnd, nonTxnOperationEnd, operationEnd, registerCursor, releaseNonTxnLocks, setHandleLockOwner, unRegisterCursor
 
Methods inherited from class com.sleepycat.je.txn.Locker
addDeleteInfo, addToHandleMaps, demoteLock, dumpLockTable, getDefaultNoWait, getId, getImportunate, getInitialLockTimeout, getLockTimeout, getPreemptable, getTxnTimeout, isHandleLockTransferrable, isReadUncommittedDefault, isRolledBack, isTimedOut, lock, nonBlockingLock, openCursorHook, operationEnd, operationEnd, releaseLock, setClosingLocker, setImportunate, setLockTimeout, setOnlyAbortable, setPreemptable, setPreempted, setTxnTimeout, toString, transferHandleLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MasterThreadLocker

public MasterThreadLocker(RepImpl repImpl)
Method Detail

isReplicationDefined

public boolean isReplicationDefined()
Description copied from class: Locker
Used for debugging checks to ensure that replication-defined lockers are used for accessing replicated databases. Overridden by replicated-defined lockers to return true.

Overrides:
isReplicationDefined in class Locker


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