1 package com.quadcap.sql.file; 2 3 40 41 import java.io.IOException ; 42 43 import java.util.Properties ; 44 45 import com.quadcap.util.collections.LongMap; 46 47 52 public interface Logger { 53 56 void init(Log log, boolean create, Properties props) throws IOException ; 57 58 61 void sync() throws IOException ; 62 63 66 void checkpoint() throws IOException ; 67 68 71 void close() throws IOException ; 72 73 76 void reset() throws IOException ; 77 78 81 long getOldestTransaction(); 82 83 86 int getActiveTransactionCount(); 87 88 91 LongMap getActiveTransactions(); 92 93 96 void put(LogEntry op) throws IOException ; 97 98 101 void setRedoState(LogEntry op, int state) throws IOException ; 102 103 106 LogEntry getLastOp(long t) throws IOException ; 107 108 111 LogEntry getPrevOp(LogEntry op) throws IOException ; 112 113 116 LogEntry getFirstOp() throws IOException ; 117 118 121 LogEntry getNextOp() throws IOException ; 122 123 126 int getCheckpoint(); 127 128 131 int getEnd(); 132 } 133 | Popular Tags |