com.sleepycat.je.latch
Class LatchStats

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

public class LatchStats
extends java.lang.Object
implements java.lang.Cloneable, java.io.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
 java.lang.Object clone()
           
 java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

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


Copyright 2004,2008 Oracle. All rights reserved.