1 8 9 package com.sleepycat.je.recovery; 10 11 import com.sleepycat.je.utilint.DbLsn; 12 13 16 public class RecoveryInfo { 17 18 19 public long lastUsedLsn = DbLsn.NULL_LSN; public long nextAvailableLsn = DbLsn.NULL_LSN; public long firstActiveLsn = DbLsn.NULL_LSN; 22 public long checkpointStartLsn = DbLsn.NULL_LSN; 23 public long checkpointEndLsn = DbLsn.NULL_LSN; 24 public long useRootLsn = DbLsn.NULL_LSN; 25 26 30 public long partialCheckpointStartLsn = DbLsn.NULL_LSN; 31 32 public CheckpointEnd checkpointEnd; 34 35 public long useMaxNodeId; 37 public int useMaxDbId; 38 public long useMaxTxnId; 39 40 public int numMapINs; 42 public int numOtherINs; 43 public int numBinDeltas; 44 public int numDuplicateINs; 45 46 public int lnFound; 48 public int lnNotFound; 49 public int lnInserted; 50 public int lnReplaced; 51 52 public int nRepeatIteratorReads; 54 55 public String toString() { 56 StringBuffer sb = new StringBuffer (); 57 sb.append("Recovery Info"); 58 appendLsn(sb, " lastUsed=", lastUsedLsn); 59 appendLsn(sb, " nextAvail=", nextAvailableLsn); 60 appendLsn(sb, " ckptStart=", checkpointStartLsn); 61 appendLsn(sb, " firstActive=", firstActiveLsn); 62 appendLsn(sb, " ckptEnd=", checkpointEndLsn); 63 appendLsn(sb, " useRoot=", useRootLsn); 64 sb.append(checkpointEnd).append(">"); 65 sb.append(" useMaxNodeId=").append(useMaxNodeId); 66 sb.append(" useMaxDbId=").append(useMaxDbId); 67 sb.append(" useMaxTxnId=").append(useMaxTxnId); 68 sb.append(" numMapINs=").append(numMapINs); 69 sb.append(" numOtherINs=").append(numOtherINs); 70 sb.append(" numBinDeltas=").append(numBinDeltas); 71 sb.append(" numDuplicateINs=").append(numDuplicateINs); 72 sb.append(" lnFound=").append(lnFound); 73 sb.append(" lnNotFound=").append(lnNotFound); 74 sb.append(" lnInserted=").append(lnInserted); 75 sb.append(" lnReplaced=").append(lnReplaced); 76 sb.append(" nRepeatIteratorReads=").append(nRepeatIteratorReads); 77 return sb.toString(); 78 } 79 80 private void appendLsn(StringBuffer sb, String name, long lsn) { 81 if (lsn != DbLsn.NULL_LSN) { 82 sb.append(name).append(DbLsn.getNoFormatString(lsn)); 83 } 84 } 85 } 86 | Popular Tags |