1 21 22 package org.apache.derby.iapi.store.raw.log; 23 24 import org.apache.derby.iapi.error.StandardException; 25 import org.apache.derby.iapi.services.property.PersistentSet; 26 import org.apache.derby.iapi.store.raw.data.DataFactory; 27 import org.apache.derby.iapi.store.raw.Corruptable; 28 import org.apache.derby.iapi.store.raw.RawStoreFactory; 29 import org.apache.derby.iapi.store.raw.ScanHandle; 30 import org.apache.derby.iapi.store.raw.ScannedTransactionHandle; 31 import org.apache.derby.iapi.store.raw.xact.TransactionFactory; 32 import org.apache.derby.io.StorageFile; 33 import org.apache.derby.iapi.store.access.DatabaseInstant; 34 import org.apache.derby.iapi.reference.Property; 35 import org.apache.derby.catalog.UUID; 36 import java.io.File ; 37 38 public interface LogFactory extends Corruptable { 39 40 46 public static final String RUNTIME_ATTRIBUTES = Property.PROPERTY_RUNTIME_PREFIX + "storage.log"; 47 48 51 public static final String RT_READONLY = "readonly"; 52 53 56 public static final String LOG_DIRECTORY_NAME = "log"; 57 58 59 60 public static final String MODULE = "org.apache.derby.iapi.store.raw.log.LogFactory"; 61 62 public Logger getLogger(); 63 64 76 public void recover(RawStoreFactory rawStoreFactory, 77 DataFactory dataFactory, 78 TransactionFactory transactionFactory) 79 throws StandardException; 80 81 104 public boolean checkpoint(RawStoreFactory rawStoreFactory, 105 DataFactory dataFactory, 106 TransactionFactory transactionFactory, 107 boolean wait) 108 throws StandardException; 109 110 117 public void flush(LogInstant where) throws StandardException; 118 119 120 134 LogScan openForwardsFlushedScan(LogInstant startAt) 135 throws StandardException; 136 137 149 ScanHandle openFlushedScan(DatabaseInstant startAt, int groupsIWant) 150 throws StandardException; 151 152 167 LogScan openForwardsScan(LogInstant startAt,LogInstant stopAt) 168 throws StandardException; 169 172 LogInstant getFirstUnflushedInstant(); 173 174 177 178 182 public void freezePersistentStore() throws StandardException; 183 184 188 public void unfreezePersistentStore() throws StandardException; 189 190 194 public boolean logArchived(); 195 196 200 public void getLogFactoryProperties(PersistentSet set) 201 throws StandardException; 202 203 207 public StorageFile getLogDirectory() throws StandardException; 208 209 215 public String getCanonicalLogPath(); 216 217 218 225 public void enableLogArchiveMode() throws StandardException; 226 227 228 234 public void disableLogArchiveMode() throws StandardException; 235 236 243 public void deleteOnlineArchivedLogFiles(); 244 245 public boolean inRFR(); 247 248 255 public void checkpointInRFR(LogInstant cinstant, long redoLWM, 256 DataFactory df) throws StandardException; 257 258 259 267 public void startLogBackup(File toDir) throws StandardException; 268 269 270 276 public void endLogBackup(File toDir) throws StandardException; 277 278 279 283 public void abortLogBackup(); 284 285 294 public void setDatabaseEncrypted(boolean flushLog) 295 throws StandardException; 296 297 298 307 public void startNewLogFile() throws StandardException; 308 309 319 public boolean isCheckpointInLastLogFile() 320 throws StandardException; 321 322 329 public void deleteLogFileAfterCheckpointLogFile() 330 throws StandardException; 331 332 333 348 public boolean checkVersion(int requiredMajorVersion, 349 int requiredMinorVersion, 350 String feature) 351 throws StandardException; 352 353 } 354 355 | Popular Tags |