com.sleepycat.je.latch
Class LatchStats

java.lang.Object
  extended by com.sleepycat.je.latch.LatchStats
All Implemented Interfaces:
Serializable, Cloneable

public class LatchStats
extends Object
implements Cloneable, Serializable

A class that provides interesting stats about a particular latch.

See Also:
Serialized Form

Field Summary
 int nAcquireNoWaitSuccessful
          Number of times acquireNoWait() was called when the latch was successfully acquired.
 int nAcquireNoWaitUnsuccessful
          Number of unsuccessful acquireNoWait() calls.
 int nAcquireSharedSuccessful
          Number of times acquireShared() was called when the latch was successfully acquired.
 int nAcquiresNoWaiters
           
 int nAcquiresSelfOwned
          Number of times acquire() was called when the latch was already owned by the caller.
 int nAcquiresUpgrade
          Number of times acquire() was called with allowNesting=true when the latch was already owned by the caller for shared access.
 int nAcquiresWithContention
          Number of times acquire() was called when the latch was already owned by the some other thread.
 int nReleases
          Numbed of calls to release();
 
Constructor Summary
LatchStats()
           
 
Method Summary
 Object clone()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nAcquiresNoWaiters

public int nAcquiresNoWaiters

nAcquiresSelfOwned

public int nAcquiresSelfOwned
Number of times acquire() was called when the latch was already owned by the caller.


nAcquiresUpgrade

public int nAcquiresUpgrade
Number of times acquire() was called with allowNesting=true when the latch was already owned by the caller for shared access.


nAcquiresWithContention

public int nAcquiresWithContention
Number of times acquire() was called when the latch was already owned by the some other thread.


nAcquireNoWaitSuccessful

public int nAcquireNoWaitSuccessful
Number of times acquireNoWait() was called when the latch was successfully acquired.


nAcquireNoWaitUnsuccessful

public int nAcquireNoWaitUnsuccessful
Number of unsuccessful acquireNoWait() calls.


nAcquireSharedSuccessful

public int nAcquireSharedSuccessful
Number of times acquireShared() was called when the latch was successfully acquired.


nReleases

public int nReleases
Numbed of calls to release();

Constructor Detail

LatchStats

public LatchStats()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.