Berkeley DB Java Edition
version 1.5.1

com.sleepycat.je
Class LockStats

java.lang.Object
  |
  +--com.sleepycat.je.LockStats

public class LockStats
extends Object

Lock statistics for a single 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.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockStats

public LockStats()
Method Detail

getNOwners

public int getNOwners()
Total lock owners in lock table. Only provided when Environment.getLockStats() is called in "slow" mode.


getNReadLocks

public int getNReadLocks()
Total read locks currently held. Only provided when Environment.getLockStats() is called in "slow" mode.


getNTotalLocks

public int getNTotalLocks()
Total locks currently in lock table. Only provided when Environment.getLockStats() is called in "slow" mode.


getNWaiters

public int getNWaiters()
Total transactions waiting for locks. Only provided when Environment.getLockStats() is called in "slow" mode.


getNWriteLocks

public int getNWriteLocks()
Total write locks currently held. Only provided when Environment.getLockStats() is called in "slow" mode.


getNWaits

public long getNWaits()
Total number of lock waits to date.


Berkeley DB Java Edition
version 1.5.1

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.