1 21 22 package org.apache.derby.impl.services.locks; 23 24 import org.apache.derby.iapi.services.diag.Diagnosticable; 25 import org.apache.derby.iapi.services.diag.DiagnosticUtil; 26 import org.apache.derby.iapi.error.StandardException; 27 28 import java.util.Properties ; 29 30 32 33 public class D_Lock implements Diagnosticable 34 { 35 protected Lock lock; 36 37 public D_Lock() 38 { 39 } 40 41 42 43 46 public void init(Object obj) 47 { 48 lock = (Lock) obj; 49 } 50 51 55 public String diag() 56 throws StandardException 57 { 58 StringBuffer sb = new StringBuffer (128); 59 60 sb.append("Lockable="); 61 sb.append(DiagnosticUtil.toDiagString(lock.getLockable())); 62 63 sb.append(" Qual="); 64 sb.append(DiagnosticUtil.toDiagString(lock.getQualifier())); 65 66 sb.append(" CSpc="); 67 sb.append(lock.getCompatabilitySpace()); 68 69 sb.append(" count=" + lock.count + " "); 70 71 return sb.toString(); 72 } 73 74 public void diag_detail(Properties prop) {} 75 } 76 77 | Popular Tags |