| java.lang.Object org.apache.derby.impl.store.raw.log.ReadOnly
ReadOnly | public class ReadOnly implements LogFactory,ModuleSupportable(Code) | | A read-only version of the log factory.
It doesn't do anything, it doesn't check that
the database needs recovery or not.
It doesn't handle undo. No recovery.
Multithreading considerations:
This class must be MT-safe.
|
Method Summary | |
public void | abortLogBackup() | public boolean | canSupport(Properties startParams) | public boolean | checkVersion(int requiredMajorVersion, int requiredMinorVersion, String feature) Check to see if a database has been upgraded to the required
level in order to use a store feature.
This method is generally used to prevent writes to
data/log file by a particular store feature until the
database is upgraded to the required version. | public boolean | checkpoint(RawStoreFactory rawStoreFactory, DataFactory dataFactory, TransactionFactory transactionFactory, boolean wait) | public void | checkpointInRFR(LogInstant cinstant, long redoLWM, DataFactory df) | public void | deleteLogFileAfterCheckpointLogFile() | public void | deleteOnlineArchivedLogFiles() | public void | disableLogArchiveMode() | public void | enableLogArchiveMode() | public void | endLogBackup(File toDir) | public void | flush(LogInstant where) | public void | freezePersistentStore() | public String | getCanonicalLogPath() | public LogInstant | getFirstUnflushedInstant() | public StorageFile | getLogDirectory() | public void | getLogFactoryProperties(PersistentSet set) | public Logger | getLogger() | public LogInstant | getTruncationLWM(UUID name) | public boolean | inRFR() | public boolean | isCheckpointInLastLogFile() | public boolean | logArchived() Backup restore - is the log being archived to some directory?
if RawStore.LOG_ARCHIVAL_DIRECTORY is set to some value, that means the
log is meant to be archived. | public StandardException | markCorrupt(StandardException originalError) | public ScanHandle | openFlushedScan(DatabaseInstant i, int groupsIWant) | public LogScan | openForwardsFlushedScan(LogInstant startAt) | public LogScan | openForwardsScan(LogInstant startAt, LogInstant stopAt) | public void | recover(RawStoreFactory rawStoreFactory, DataFactory dataFactory, TransactionFactory transactionFactory) | public void | removeTruncationLWM(UUID name, RawStoreFactory rawStoreFactory, TransactionFactory transFactory) | public void | removeTruncationLWM(UUID name) | public void | setDatabaseEncrypted(boolean flushLog) | public LogInstant | setTruncationLWM(UUID name, LogInstant instant, RawStoreFactory rawStoreFactory, TransactionFactory transFactory) | public void | setTruncationLWM(UUID name, LogInstant instant) | public void | startLogBackup(File toDir) | public void | startNewLogFile() | public void | unfreezePersistentStore() |
abortLogBackup | public void abortLogBackup()(Code) | | |
checkVersion | public boolean checkVersion(int requiredMajorVersion, int requiredMinorVersion, String feature) throws StandardException(Code) | | Check to see if a database has been upgraded to the required
level in order to use a store feature.
This method is generally used to prevent writes to
data/log file by a particular store feature until the
database is upgraded to the required version.
In read-only database writes are not allowed, so nothing to do
for this method in this implementation of the log factory.
Parameters: requiredMajorVersion - required database Engine major version Parameters: requiredMinorVersion - required database Engine minor version Parameters: feature - Non-null to throw an exception, null to return the state of the version match. exception: StandardException - not implemented exception is thrown |
deleteLogFileAfterCheckpointLogFile | public void deleteLogFileAfterCheckpointLogFile() throws StandardException(Code) | | |
deleteOnlineArchivedLogFiles | public void deleteOnlineArchivedLogFiles()(Code) | | |
disableLogArchiveMode | public void disableLogArchiveMode()(Code) | | |
enableLogArchiveMode | public void enableLogArchiveMode()(Code) | | |
freezePersistentStore | public void freezePersistentStore() throws StandardException(Code) | | Backup restore - stop sending log record to the log stream
exception: StandardException - Standard Cloudscape error policy |
getCanonicalLogPath | public String getCanonicalLogPath()(Code) | | |
getLogFactoryProperties | public void getLogFactoryProperties(PersistentSet set)(Code) | | Get JBMS properties relavent to the log factory
|
inRFR | public boolean inRFR()(Code) | | |
logArchived | public boolean logArchived()(Code) | | Backup restore - is the log being archived to some directory?
if RawStore.LOG_ARCHIVAL_DIRECTORY is set to some value, that means the
log is meant to be archived. Else, log not archived.
|
setDatabaseEncrypted | public void setDatabaseEncrypted(boolean flushLog)(Code) | | |
unfreezePersistentStore | public void unfreezePersistentStore() throws StandardException(Code) | | Backup restore - start sending log record to the log stream
exception: StandardException - Standard Cloudscape error policy |
|
|