Package com.sleepycat.db
Class LockStats
java.lang.Object
com.sleepycat.db.LockStats
Lock statistics for a database environment.
-
Method Summary
Modifier and TypeMethodDescriptionintThe current maximum unused locker ID.intMaximum length of a lock hash bucket.intgetId()The last allocated locker ID.intThe initial number of lockers allocated in lock table.intThe initial number of locks allocated in the lock table.intThe initial number of lock objects allocated in lock table.intThe current number of lockers allocated in lock table.longThe number of requests to allocate or deallocate a locker for which the thread of control did not wait.longThe number of requests to allocate or deallocate a locker for which the thread of control waited.longThe number of lock requests not immediately available due to conflicts, for which the thread of control did not wait.intgetLocks()The current number of locks allocated in lock table.longThe maximum number of locks stolen by an empty partition.intLock timeout value.longThe number of lock requests not immediately available due to conflicts, for which the thread of control waited.intThe maximum number of locks in any hash bucket at any one time.intThe maximum number of objects in any hash bucket at any one time.intThe maximum number of lockers possible.intThe maximum number of locks possible.longThe maximum number of lock steals for any one partition.intThe maximum number of lockers at any one time.intThe maximum number of locks at any one time.intThe maximum number of lock objects at any one time.intThe maximum number of lock objects possible.longThe maximum number of object steals for any one partition.intThe number of current lock objects.longThe number of deadlocks.longThe total number of locks downgraded.intThe number of current lockers.intThe number of current locks.longThe number of lock requests that have timed out.intThe number of lock modes.longThe total number of locks released.longThe total number of locks requested.longThe number of transactions that have timed out.longThe total number of locks upgraded.intThe current number of lock objects allocated in lock table.longThe maximum number of objects stolen by an empty partition.longThe number of requests to allocate or deallocate an object for which the thread of control did not wait.longThe number of requests to allocate or deallocate an object for which the thread of control waited.intThe number of lock table partitions.longThe number of times that a thread of control was able to obtain any one lock partition mutex without waiting.longThe maximum number of times that a thread of control was forced to wait before obtaining any one lock partition mutex.longThe number of times that a thread of control was able to obtain a lock partition mutex without waiting.longThe number of times that a thread of control was forced to wait before obtaining a lock partition mutex.longThe number of times that a thread of control was able to obtain the region lock without waiting.longThe number of times that a thread of control was forced to wait before obtaining the region lock.longThe size of the lock region.intThe size of object hash table.intTransaction timeout value.toString()For convenience, the LockStats class has a toString method that lists all the data fields.
-
Method Details
-
getId
public int getId()The last allocated locker ID. -
getCurMaxId
public int getCurMaxId()The current maximum unused locker ID. -
getInitlocks
public int getInitlocks()The initial number of locks allocated in the lock table. -
getInitlockers
public int getInitlockers()The initial number of lockers allocated in lock table. -
getInitobjects
public int getInitobjects()The initial number of lock objects allocated in lock table. -
getLocks
public int getLocks()The current number of locks allocated in lock table. -
getLockers
public int getLockers()The current number of lockers allocated in lock table. -
getObjects
public int getObjects()The current number of lock objects allocated in lock table. -
getMaxLocks
public int getMaxLocks()The maximum number of locks possible. -
getMaxLockers
public int getMaxLockers()The maximum number of lockers possible. -
getMaxObjects
public int getMaxObjects()The maximum number of lock objects possible. -
getPartitions
public int getPartitions()The number of lock table partitions. -
getTableSize
public int getTableSize()The size of object hash table. -
getNumModes
public int getNumModes()The number of lock modes. -
getNumLockers
public int getNumLockers()The number of current lockers. -
getNumLocks
public int getNumLocks()The number of current locks. -
getMaxNlocks
public int getMaxNlocks()The maximum number of locks at any one time. Note that if there is more than one partition, this is the sum of the maximum across all partitions. -
getMaxHlocks
public int getMaxHlocks()The maximum number of locks in any hash bucket at any one time. -
getLocksteals
public long getLocksteals()The maximum number of locks stolen by an empty partition. -
getMaxLsteals
public long getMaxLsteals()The maximum number of lock steals for any one partition. -
getMaxNlockers
public int getMaxNlockers()The maximum number of lockers at any one time. -
getNobjects
public int getNobjects()The number of current lock objects. -
getMaxNobjects
public int getMaxNobjects()The maximum number of lock objects at any one time. Note that if there is more than one partition this is the sum of the maximum across all partitions. -
getMaxHobjects
public int getMaxHobjects()The maximum number of objects in any hash bucket at any one time. -
getObjectsteals
public long getObjectsteals()The maximum number of objects stolen by an empty partition. -
getMaxOsteals
public long getMaxOsteals()The maximum number of object steals for any one partition. -
getNumRequests
public long getNumRequests()The total number of locks requested. -
getNumReleases
public long getNumReleases()The total number of locks released. -
getNumUpgrade
public long getNumUpgrade()The total number of locks upgraded. -
getNumDowngrade
public long getNumDowngrade()The total number of locks downgraded. -
getLockWait
public long getLockWait()The number of lock requests not immediately available due to conflicts, for which the thread of control waited. -
getLockNowait
public long getLockNowait()The number of lock requests not immediately available due to conflicts, for which the thread of control did not wait. -
getNumDeadlocks
public long getNumDeadlocks()The number of deadlocks. -
getLockTimeout
public int getLockTimeout()Lock timeout value. -
getNumLockTimeouts
public long getNumLockTimeouts()The number of lock requests that have timed out. -
getTxnTimeout
public int getTxnTimeout()Transaction timeout value. -
getNumTxnTimeouts
public long getNumTxnTimeouts()The number of transactions that have timed out. This value is also a component of st_ndeadlocks, the total number of deadlocks detected. -
getPartWait
public long getPartWait()The number of times that a thread of control was forced to wait before obtaining a lock partition mutex. -
getPartNowait
public long getPartNowait()The number of times that a thread of control was able to obtain a lock partition mutex without waiting. -
getPartMaxWait
public long getPartMaxWait()The maximum number of times that a thread of control was forced to wait before obtaining any one lock partition mutex. -
getPartMaxNowait
public long getPartMaxNowait()The number of times that a thread of control was able to obtain any one lock partition mutex without waiting. -
getObjsWait
public long getObjsWait()The number of requests to allocate or deallocate an object for which the thread of control waited. -
getObjsNowait
public long getObjsNowait()The number of requests to allocate or deallocate an object for which the thread of control did not wait. -
getLockersWait
public long getLockersWait()The number of requests to allocate or deallocate a locker for which the thread of control waited. -
getLockersNowait
public long getLockersNowait()The number of requests to allocate or deallocate a locker for which the thread of control did not wait. -
getRegionWait
public long getRegionWait()The number of times that a thread of control was forced to wait before obtaining the region lock. -
getRegionNowait
public long getRegionNowait()The number of times that a thread of control was able to obtain the region lock without waiting. -
getHashLen
public int getHashLen()Maximum length of a lock hash bucket. -
getRegSize
public long getRegSize()The size of the lock region. -
toString
For convenience, the LockStats class has a toString method that lists all the data fields.
-