Environment.getStats(StatsConfig)
.public class LockStats extends Object implements Serializable
Note that some of the lock statistics may be expensive to obtain because
the lock table is unavailable to other operations 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 and Description |
---|
LockStats(com.sleepycat.je.utilint.StatGroup basicStats,
com.sleepycat.je.utilint.StatGroup latchStats,
com.sleepycat.je.utilint.StatGroup tableStats)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getNAcquiresNoWaiters()
Deprecated.
Number of acquires of lock table latch with no contention.
|
int |
getNAcquiresNoWaitSuccessful()
Deprecated.
Number of successful no-wait acquires of the lock table latch.
|
int |
getNAcquiresNoWaitUnSuccessful()
Deprecated.
Number of unsuccessful no-wait acquires of the lock table latch.
|
int |
getNAcquiresSelfOwned()
Deprecated.
Number of acquires of lock table latch when it was already owned
by the caller.
|
int |
getNAcquiresWithContention()
Deprecated.
Number of acquires of lock table latch when it was already owned by
another thread.
|
int |
getNOwners()
Deprecated.
Total lock owners in lock table.
|
int |
getNReadLocks()
Deprecated.
Total read locks currently held.
|
int |
getNReleases()
Deprecated.
Number of releases of the lock table latch.
|
long |
getNRequests()
Deprecated.
Total number of lock requests to date.
|
int |
getNTotalLocks()
Deprecated.
Total locks currently in lock table.
|
int |
getNWaiters()
Deprecated.
Total transactions waiting for locks.
|
long |
getNWaits()
Deprecated.
Total number of lock waits to date.
|
int |
getNWriteLocks()
Deprecated.
Total write locks currently held.
|
String |
toString()
Deprecated.
For convenience, LockTable.toString will display all stats in
an easily readable format.
|
String |
toStringVerbose()
Deprecated.
Like #toString, display all stats.
|
public LockStats(com.sleepycat.je.utilint.StatGroup basicStats, com.sleepycat.je.utilint.StatGroup latchStats, com.sleepycat.je.utilint.StatGroup tableStats)
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 int getNAcquiresNoWaiters()
public int getNAcquiresSelfOwned()
public int getNAcquiresWithContention()
public int getNAcquiresNoWaitSuccessful()
public int getNAcquiresNoWaitUnSuccessful()
public int getNReleases()
public String toString()
public String toStringVerbose()
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.