diff options
Diffstat (limited to 'lang/java/src/com/sleepycat/db/LockStats.java')
| -rw-r--r-- | lang/java/src/com/sleepycat/db/LockStats.java | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/lang/java/src/com/sleepycat/db/LockStats.java b/lang/java/src/com/sleepycat/db/LockStats.java index c06f720d..649b165c 100644 --- a/lang/java/src/com/sleepycat/db/LockStats.java +++ b/lang/java/src/com/sleepycat/db/LockStats.java @@ -4,7 +4,7 @@ * * See the file LICENSE for redistribution information. * - * Copyright (c) 2002, 2012 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved. */ package com.sleepycat.db; @@ -299,36 +299,36 @@ public class LockStats { private long st_part_wait; /** - The number of times that a thread of control was forced to wait before - obtaining a lock partition mutex. - * */ + The number of times that a thread of control was forced to wait before + obtaining a lock partition mutex. + */ public long getPartWait() { return st_part_wait; } private long st_part_nowait; /** - The number of times that a thread of control was able to obtain a lock - partition mutex without waiting. - * */ + The number of times that a thread of control was able to obtain a lock + partition mutex without waiting. + */ public long getPartNowait() { return st_part_nowait; } private long st_part_max_wait; /** - The maximum number of times that a thread of control was forced to wait - before obtaining any one lock partition mutex. - * */ + The maximum number of times that a thread of control was forced to wait + before obtaining any one lock partition mutex. + */ public long getPartMaxWait() { return st_part_max_wait; } private long st_part_max_nowait; /** - The number of times that a thread of control was able to obtain any one - lock partition mutex without waiting. - * */ + The number of times that a thread of control was able to obtain any one + lock partition mutex without waiting. + */ public long getPartMaxNowait() { return st_part_max_nowait; } @@ -371,8 +371,8 @@ public class LockStats { private long st_region_wait; /** - The number of times that a thread of control was forced to wait - before obtaining the region lock. + The number of times that a thread of control was forced to wait before + obtaining the lock region mutex. */ public long getRegionWait() { return st_region_wait; @@ -380,13 +380,29 @@ public class LockStats { private long st_region_nowait; /** - The number of times that a thread of control was able to obtain the - region lock without waiting. + The number of times that a thread of control was able to obtain the lock + region mutex without waiting. */ public long getRegionNowait() { return st_region_nowait; } + private long st_nlockers_hit; + /** + The number of hits in the thread locker cache. + */ + public long getNumLockersHit() { + return st_nlockers_hit; + } + + private long st_nlockers_reused; + /** + Total number of lockers reused. + */ + public long getNumLockersReused() { + return st_nlockers_reused; + } + private int st_hash_len; /** Maximum length of a lock hash bucket. @@ -456,6 +472,8 @@ public class LockStats { + "\n st_lockers_nowait=" + st_lockers_nowait + "\n st_region_wait=" + st_region_wait + "\n st_region_nowait=" + st_region_nowait + + "\n st_nlockers_hit=" + st_nlockers_hit + + "\n st_nlockers_reused=" + st_nlockers_reused + "\n st_hash_len=" + st_hash_len + "\n st_regsize=" + st_regsize ; |
