It doesn't handle undo. No recovery.
Multithreading considerations:
This class must be MT-safe.
| Modifier and Type | Field and Description |
|---|---|
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | canSupport(Properties startParams)
Implements org. See if this implementation can support any attributes that are listed in properties. |
| public boolean | checkpoint(RawStoreFactory
- the raw store rawStoreFactory, DataFactory - the data factory dataFactory, TransactionFactory - the transaction factory transactionFactory, boolean - if true waits for any existing checkpoint to complete
and then executes and waits for another checkpoint.
if false if another thead is executing a checkpoint
routine will return immediately. wait)Implements org. MT - not needed, no work is done |
| public void | checkpointInRFR(LogInstant
The LogInstant of the checkpoint cinstant, long Redo Low Water Mark in the check point record redoLWM, long Undo Low Water Mark in the checkpoint undoLWM, DataFactory - the data factory df)Implements org. Perform a checkpoint during rollforward recovery. |
| public boolean | checkVersion(int
required database Engine major version requiredMajorVersion, int required database Engine minor version requiredMinorVersion, String Non-null to throw an exception, null to return the
state of the version match. feature)Implements org. Check to see if a database has been upgraded to the required level in order to use a store feature. |
| public void | createDataWarningFile()
Implements org. Not applicable in readonly databases |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | flush(LogInstant
flush log up to here where)Implements org. Flush all unwritten log record up to the log instance indicated to disk. |
| public void | freezePersistentStore()
Implements org. Backup restore - stop sending log record to the log stream |
| public String | getCanonicalLogPath()
Implements org. Return the canonical directory of the PARENT of the log directory. |
| public LogInstant | getFirstUnflushedInstant()
Implements org. Get the instant for the last record in the log. |
| public long | getFirstUnflushedInstantAsLong()
Implements org. Get the log instant long value of the first log record that has not been flushed. |
| public StorageFile | getLogDirectory()
Implements org. Return the location of the log directory. |
| public void | getLogFactoryProperties(PersistentSet set)
Implements org. Get JBMS properties relevant to the log factory |
| public Logger | |
| public LogInstant | |
| public boolean | Returns: false always since replication is not applicable here.Implements org. Replication not applicable on readonly databases. |
| public boolean | |
| public boolean | |
| public boolean | logArchived()
Implements org. Backup restore - is the log being archived to some directory? |
| public StandardException | markCorrupt(StandardException originalError)
Implements org. Mark the module as corrupt. |
| public ScanHandle | openFlushedScan(DatabaseInstant
- the LogInstant where we start our scan. null means
start at the beginning of the log. This function raises an error
if startAt is a LogInstant which is not in the log. i, int - log record groups the scanner wants. groupsIWant)Implements org. Get a ScanHandle to scan flushed records from the log. |
| public LogScan | openForwardsFlushedScan(LogInstant
- the LogInstant where we start our scan. null means
start at the beginning of the log. This function raises an error
if startAt is a LogInstant which is not in the log. startAt)Implements org. Get a LogScan to scan flushed records from the log. |
| public LogScan | openForwardsScan(LogInstant
- the LogInstant where we start our scan. null means
start at the beginning of the log. This function raises an error
if startAt is a LogInstant which is not in the log. startAt, LogInstant - the LogInstant where we stop our scan. null means
stop at the end of the log. This function raises an error
if stopAt is a LogInstant which is not in the log. stopAt)Implements org. Get a LogScan to scan the log in a forward direction. |
| public void | recover(DataFactory
- the data factory dataFactory, TransactionFactory - the transaction factory transactionFactory)Implements org. MT - not needed, no work is done |
| public void | |
| public void | |
| public void | setDatabaseEncrypted(boolean
true if the database is encrypted,
false if nottrue if log needs to be flushed,
false otherwiseImplements org. Sets whether the database is encrypted. |
| public void | setRawStoreFactory(RawStoreFactory rsf)
Implements org. Not applicable in readonly databases |
| public LogInstant | setTruncationLWM(UUID name, LogInstant instant, RawStoreFactory rawStoreFactory, TransactionFactory transFactory)
|
| public void | |
| public void | |
| public void | |
| public void | startReplicationMasterRole(MasterFactory
The MasterFactory service responsible for
controlling the master side replication behaviour. masterFactory)Implements org. Replication not applicable on readonly databases |
| public void | stopReplicationMasterRole()
Implements org. Replication not applicable on readonly databases |
| public void | unfreezePersistentStore()
Implements org. Backup restore - start sending log record to the log stream |
| logArchiveDirectory | back to summary |
|---|---|
| private String logArchiveDirectory | |
| ReadOnly | back to summary |
|---|---|
| public ReadOnly() | |
| abortLogBackup | back to summary |
|---|---|
| public void abortLogBackup() Implements org. | |
| canSupport | back to summary |
|---|---|
| public boolean canSupport(Properties startParams) Implements org. Doc from org. See if this implementation can support any attributes that are listed in properties. This call may be made on a newly created instance before the boot() method has been called, or after the boot method has been called for a running module.
The module can check for attributes in the properties to
see if it can fulfill the required behaviour. E.g. the raw
store may define an attribute called RawStore.Recoverable.
If a temporary raw store is required the property RawStore.recoverable=false
would be added to the properties before calling bootServiceModule. If a
raw store cannot support this attribute its canSupport method would
return null. Also see the Monitor class's prologue to see how the
identifier is used in looking up properties.
| |
| checkpoint | back to summary |
|---|---|
| public boolean checkpoint(RawStoreFactory rawStoreFactory, DataFactory dataFactory, TransactionFactory transactionFactory, boolean wait) Implements org. MT - not needed, no work is done
| |
| checkpointInRFR | back to summary |
|---|---|
| public void checkpointInRFR(LogInstant cinstant, long redoLWM, long undoLWM, DataFactory df) throws StandardException Implements org. Perform a checkpoint during rollforward recovery.
| |
| checkVersion | back to summary |
|---|---|
| public boolean checkVersion(int requiredMajorVersion, int requiredMinorVersion, String feature) throws StandardException Implements org. 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.
| |
| createDataWarningFile | back to summary |
|---|---|
| public void createDataWarningFile() throws StandardException Implements org. Not applicable in readonly databases | |
| deleteLogFileAfterCheckpointLogFile | back to summary |
|---|---|
| public void deleteLogFileAfterCheckpointLogFile() throws StandardException Implements org. | |
| deleteOnlineArchivedLogFiles | back to summary |
|---|---|
| public void deleteOnlineArchivedLogFiles() Implements org. | |
| disableLogArchiveMode | back to summary |
|---|---|
| public void disableLogArchiveMode() Implements org. | |
| enableLogArchiveMode | back to summary |
|---|---|
| public void enableLogArchiveMode() Implements org. | |
| endLogBackup | back to summary |
|---|---|
| public void endLogBackup(File toDir) throws StandardException Implements org. | |
| flush | back to summary |
|---|---|
| public void flush(LogInstant where) throws StandardException Implements org. Doc from org. Flush all unwritten log record up to the log instance indicated to disk.
| |
| freezePersistentStore | back to summary |
|---|---|
| public void freezePersistentStore() throws StandardException Implements org. Backup restore - stop sending log record to the log stream
| |
| getCanonicalLogPath | back to summary |
|---|---|
| public String getCanonicalLogPath() Implements org. Doc from org. Return the canonical directory of the PARENT of the log directory. The log directory live in the "log" subdirectory of this path. If the log is at the default location (underneath the database directory), this returns null. Should only be called after the log factory is booted. | |
| getFirstUnflushedInstant | back to summary |
|---|---|
| public LogInstant getFirstUnflushedInstant() Implements org. Doc from org. Get the instant for the last record in the log. | |
| getFirstUnflushedInstantAsLong | back to summary |
|---|---|
| public long getFirstUnflushedInstantAsLong() Implements org. Doc from org. Get the log instant long value of the first log record that has not been flushed. Only works after recover() has finished, or (if in slave replication mode) after calling initializeReplicationSlaveRole.
| |
| getLogDirectory | back to summary |
|---|---|
| public StorageFile getLogDirectory() Implements org. Doc from org. Return the location of the log directory. | |
| getLogFactoryProperties | back to summary |
|---|---|
| public void getLogFactoryProperties(PersistentSet set) Implements org. Get JBMS properties relevant to the log factory | |
| getLogger | back to summary |
|---|---|
| public Logger getLogger() Implements org. | |
| getTruncationLWM | back to summary |
|---|---|
public LogInstant getTruncationLWM(UUID name) throws StandardException
| |
| inReplicationMasterMode | back to summary |
|---|---|
| public boolean inReplicationMasterMode() Implements org. Replication not applicable on readonly databases.
| |
| inRFR | back to summary |
|---|---|
| public boolean inRFR() Implements org. | |
| isCheckpointInLastLogFile | back to summary |
|---|---|
| public boolean isCheckpointInLastLogFile() throws StandardException Implements org. | |
| logArchived | back to summary |
|---|---|
| public boolean logArchived() Implements org. 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.
| |
| markCorrupt | back to summary |
|---|---|
| public StandardException markCorrupt(StandardException originalError) Implements org. Doc from org. Mark the module as corrupt. It is safe to call this multiple times.
| |
| openFlushedScan | back to summary |
|---|---|
| public ScanHandle openFlushedScan(DatabaseInstant i, int groupsIWant) throws StandardException Implements org. Doc from org. Get a ScanHandle to scan flushed records from the log. MT- read only
| |
| openForwardsFlushedScan | back to summary |
|---|---|
| public LogScan openForwardsFlushedScan(LogInstant startAt) throws StandardException Implements org. Doc from org. Get a LogScan to scan flushed records from the log. MT- read only
| |
| openForwardsScan | back to summary |
|---|---|
| public LogScan openForwardsScan(LogInstant startAt, LogInstant stopAt) throws StandardException Implements org. Doc from org. Get a LogScan to scan the log in a forward direction. MT- read only
| |
| recover | back to summary |
|---|---|
| public void recover(DataFactory dataFactory, TransactionFactory transactionFactory) throws StandardException Implements org. MT - not needed, no work is done
| |
| removeTruncationLWM | back to summary |
|---|---|
public void removeTruncationLWM(UUID name, RawStoreFactory rawStoreFactory, TransactionFactory transFactory) throws StandardException
| |
| removeTruncationLWM | back to summary |
|---|---|
public void removeTruncationLWM(UUID name) throws StandardException
| |
| setDatabaseEncrypted | back to summary |
|---|---|
| public void setDatabaseEncrypted(boolean isEncrypted, boolean flushLog) Implements org. Sets whether the database is encrypted. Read-only database can not be re-encrypted, nothing to do in this case.
| |
| setRawStoreFactory | back to summary |
|---|---|
| public void setRawStoreFactory(RawStoreFactory rsf) Implements org. Not applicable in readonly databases | |
| setTruncationLWM | back to summary |
|---|---|
| public LogInstant setTruncationLWM(UUID name, LogInstant instant, RawStoreFactory rawStoreFactory, TransactionFactory transFactory) throws StandardException | |
| setTruncationLWM | back to summary |
|---|---|
public void setTruncationLWM(UUID name, LogInstant instant) throws StandardException
| |
| startLogBackup | back to summary |
|---|---|
| public void startLogBackup(File toDir) throws StandardException Implements org. | |
| startNewLogFile | back to summary |
|---|---|
| public void startNewLogFile() throws StandardException Implements org. | |
| startReplicationMasterRole | back to summary |
|---|---|
| public void startReplicationMasterRole(MasterFactory masterFactory) throws StandardException Implements org. Replication not applicable on readonly databases
| |
| stopReplicationMasterRole | back to summary |
|---|---|
| public void stopReplicationMasterRole() Implements org. Replication not applicable on readonly databases | |
| unfreezePersistentStore | back to summary |
|---|---|
| public void unfreezePersistentStore() throws StandardException Implements org. Backup restore - start sending log record to the log stream
| |