1 21 22 package org.apache.derby.impl.store.raw.log; 23 24 import org.apache.derby.impl.store.raw.log.LogCounter; 25 import org.apache.derby.iapi.services.diag.DiagnosticUtil; 26 import org.apache.derby.iapi.services.diag.Diagnosticable; 27 import org.apache.derby.iapi.services.diag.DiagnosticableGeneric; 28 import org.apache.derby.iapi.error.StandardException; 29 30 public class D_FlushedScan 31 extends DiagnosticableGeneric 32 { 33 37 public String diag() 38 throws StandardException 39 { 40 FlushedScan fs = (FlushedScan)diag_object; 41 StringBuffer r = new StringBuffer (); 42 r.append("FlushedScan: \n"); 43 r.append(" Open: "+fs.open+"\n"); 44 r.append(" currentLogFileNumber: "+fs.currentLogFileNumber+"\n"); 45 r.append(" currentLogFirstUnflushedPosition: "+ 46 fs.currentLogFileFirstUnflushedPosition+"\n"); 47 r.append(" currentInstant: "+fs.currentInstant+"\n"); 48 r.append(" firstUnflushed: "+fs.firstUnflushed+"\n"); 49 r.append(" firstUnflushedFileNumber: "+fs.firstUnflushedFileNumber+"\n"); 50 r.append(" firstUnflushedFilePosition: "+fs.firstUnflushedFilePosition+"\n"); 51 r.append(" logFactory: \n"+ 52 DiagnosticUtil.toDiagString(fs.logFactory)); 53 r.append("flushedScanEnd\n"); 54 return r.toString(); 55 } 56 } 57 | Popular Tags |