com.sleepycat.je.txn
Class LockInfo

java.lang.Object
  extended by com.sleepycat.je.txn.LockInfo
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
ThinLockImpl

public class LockInfo
extends java.lang.Object
implements java.lang.Cloneable

LockInfo is a class that embodies information about a lock instance. The holding thread and the locktype are all contained in the object. This class is public for unit tests.


Field Summary
protected  Locker locker
           
protected  LockType lockType
           
 
Constructor Summary
LockInfo(Locker locker, LockType lockType)
          Construct a new LockInfo.
 
Method Summary
 java.lang.Object clone()
           
 void dump()
          Debugging
static boolean getDeadlockStackTrace()
          For unit testing only.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

locker

protected Locker locker

lockType

protected LockType lockType
Constructor Detail

LockInfo

public LockInfo(Locker locker,
                LockType lockType)
Construct a new LockInfo. public for Sizeof program.

Method Detail

getDeadlockStackTrace

public static boolean getDeadlockStackTrace()
For unit testing only.


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

dump

public void dump()
Debugging


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object