|
Berkeley DB Java Edition version ${release.version} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.LockStats
public class LockStats
Lock statistics for a database environment.
Note that some of the lock statistics may be expensive to obtain because
the lock table is unavailable while the statistics are gathered. These
expensive statistics are only provided if Environment.getLockStats
is
called with a StatsConfig parameter that has been configured for "slow"
stats.
Constructor Summary | |
---|---|
LockStats()
|
Method Summary | |
---|---|
int |
getNOwners()
Total lock owners in lock table. |
int |
getNReadLocks()
Total read locks currently held. |
long |
getNRequests()
Total number of lock requests to date. |
int |
getNTotalLocks()
Total locks currently in lock table. |
int |
getNWaiters()
Total transactions waiting for locks. |
long |
getNWaits()
Total number of lock waits to date. |
int |
getNWriteLocks()
Total write locks currently held. |
String |
toString()
For convenience, the LockStats class has a toString method that lists all the data fields. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LockStats()
Method Detail |
---|
public int getNOwners()
Environment.getLockStats
is
called in "slow" mode.
public int getNReadLocks()
Environment.getLockStats
is
called in "slow" mode.
public int getNTotalLocks()
Environment.getLockStats
is
called in "slow" mode.
public int getNWaiters()
Environment.getLockStats
is
called in "slow" mode.
public int getNWriteLocks()
Environment.getLockStats
is
called in "slow" mode.
public long getNRequests()
public long getNWaits()
public String toString()
toString
in class Object
|
Berkeley DB Java Edition version ${release.version} |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |