1 8 9 package com.sleepycat.je.latch; 10 11 import java.io.Serializable ; 12 13 16 public class LatchStats implements Cloneable , Serializable { 17 18 public int nAcquiresNoWaiters = 0; 19 20 24 public int nAcquiresSelfOwned = 0; 25 26 30 public int nAcquiresUpgrade = 0; 31 32 36 public int nAcquiresWithContention = 0; 37 38 42 public int nAcquireNoWaitSuccessful = 0; 43 44 47 public int nAcquireNoWaitUnsuccessful = 0; 48 49 53 public int nAcquireSharedSuccessful = 0; 54 55 58 public int nReleases = 0; 59 60 public String toString() { 61 StringBuffer sb = new StringBuffer (); 62 sb.append("nAcquiresNoWaiters="). 63 append(nAcquiresNoWaiters).append('\n'); 64 sb.append("nAcquiresSelfOwned="). 65 append(nAcquiresSelfOwned).append('\n'); 66 sb.append("nAcquiresUpgrade="). 67 append(nAcquiresUpgrade).append('\n'); 68 sb.append("nAcquiresWithContention="). 69 append(nAcquiresWithContention).append('\n'); 70 sb.append("nAcquiresNoWaitSuccessful="). 71 append(nAcquireNoWaitSuccessful).append('\n'); 72 sb.append("nAcquiresNoWaitUnSuccessful="). 73 append(nAcquireNoWaitUnsuccessful).append('\n'); 74 sb.append("nAcquiresSharedSuccessful="). 75 append(nAcquireSharedSuccessful).append('\n'); 76 return sb.toString(); 77 } 78 79 public Object clone() 80 throws CloneNotSupportedException { 81 return super.clone(); 82 } 83 } 84 | Popular Tags |