|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static java.lang.String |
LOG_DIRECTORY_NAME
The name of the default log directory. |
static java.lang.String |
MODULE
|
static java.lang.String |
RT_READONLY
An attribute that indicates the database is readonly |
static java.lang.String |
RUNTIME_ATTRIBUTES
The name of a runtime property in the service set that defines any runtime attributes a log factory should have. |
Method Summary | |
boolean |
checkpoint(RawStoreFactory rawStoreFactory,
DataFactory dataFactory,
TransactionFactory transactionFactory,
boolean wait)
Checkpoint the rawstore. |
void |
checkpointInRFR(LogInstant cinstant,
long redoLWM,
DataFactory df)
redoing a checkpoint during rollforward recovery |
boolean |
copyActiveLogFiles(java.io.File toDir)
|
void |
deleteOnlineArchivedLogFiles()
|
void |
disableLogArchiveMode()
|
void |
enableLogArchiveMode()
|
void |
flush(LogInstant where)
Flush all unwritten log record up to the log instance indicated to disk. |
void |
freezePersistentStore()
Stop making any change to the persistent store |
java.lang.String |
getCanonicalLogPath()
Return the canonical directory of the PARENT of the log directory. |
LogInstant |
getFirstUnflushedInstant()
Get the instant for the last record in the log. |
StorageFile |
getLogDirectory()
Return the location of the log directory. |
void |
getLogFactoryProperties(PersistentSet set)
Get JBMS properties relavent to the log factory |
Logger |
getLogger()
|
boolean |
inRFR()
|
boolean |
logArchived()
checks whether is log archive mode is enabled or not. |
ScanHandle |
openFlushedScan(DatabaseInstant start,
int groupsIWant)
Get a ScanHandle to scan flushed records from the log. |
LogScan |
openForwardsFlushedScan(LogInstant startAt)
Get a LogScan to scan flushed records from the log. |
LogScan |
openForwardsScan(LogInstant startAt,
LogInstant stopAt)
Get a LogScan to scan the log in a forward direction. |
void |
recover(RawStoreFactory rawStoreFactory,
DataFactory dataFactory,
TransactionFactory transactionFactory)
Recover the database to a consistent state using the log. |
void |
unfreezePersistentStore()
Can start making change to the persistent store again |
Methods inherited from interface org.apache.derby.iapi.store.raw.Corruptable |
markCorrupt |
Field Detail |
public static final java.lang.String RUNTIME_ATTRIBUTES
public static final java.lang.String RT_READONLY
public static final java.lang.String LOG_DIRECTORY_NAME
public static final java.lang.String MODULE
Method Detail |
public Logger getLogger()
public void recover(RawStoreFactory rawStoreFactory, DataFactory dataFactory, TransactionFactory transactionFactory) throws StandardException
rawStoreFactory
- - the raw storedataFactory
- - the data factorytransactionFactory
- - the transaction factory
StandardException
- - encounter exception while recovering.public boolean checkpoint(RawStoreFactory rawStoreFactory, DataFactory dataFactory, TransactionFactory transactionFactory, boolean wait) throws StandardException
rawStoreFactory
- - the raw storedataFactory
- - the data factorytransactionFactory
- - the transaction factorywait
- - if true; waits for the checkpoint to completed even if it is being done my an another thread.
StandardException
- - encounter exception while doing checkpoint.public void flush(LogInstant where) throws StandardException
where
- flush log up to here
StandardException
- cannot flush log file due to sync errorpublic LogScan openForwardsFlushedScan(LogInstant startAt) throws StandardException
MT- read only
startAt
- - 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.
StandardException
- StandardCloudscape error policy
NOTE: This will be removed after the LogSniffer Rewrite.public ScanHandle openFlushedScan(DatabaseInstant start, int groupsIWant) throws StandardException
MT- read only
groupsIWant
- - log record groups the scanner wants.
StandardException
- StandardCloudscape error policypublic LogScan openForwardsScan(LogInstant startAt, LogInstant stopAt) throws StandardException
MT- read only
startAt
- - 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.stopAt
- - 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.
StandardException
- StandardCloudscape error policypublic LogInstant getFirstUnflushedInstant()
public void freezePersistentStore() throws StandardException
StandardException
- Standard cloudscape exception policy.public void unfreezePersistentStore() throws StandardException
StandardException
- Standard cloudscape exception policy.public boolean logArchived()
public void getLogFactoryProperties(PersistentSet set) throws StandardException
StandardException
- Standard Cloudscape Error Policypublic StorageFile getLogDirectory() throws StandardException
StandardException
- Standard Cloudscape Error Policypublic java.lang.String getCanonicalLogPath()
public boolean copyActiveLogFiles(java.io.File toDir) throws StandardException
StandardException
public void enableLogArchiveMode() throws StandardException
StandardException
public void disableLogArchiveMode() throws StandardException
StandardException
public void deleteOnlineArchivedLogFiles()
public boolean inRFR()
public void checkpointInRFR(LogInstant cinstant, long redoLWM, DataFactory df) throws StandardException
cinstant
- The LogInstant of the checkpointredoLWM
- Redo Low Water Mark in the check point record
StandardException
- - encounter exception during checkpoint
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |