xflminterface IF_RestoreClient : public XF_RefCount
This class represents the restore client interface. It extends XF_RefCount. XFLAIM does not provide an implementation of this interface. It must be implemented by an application. Methods on this object are used by the IF_DbSystem::dbRestore method to read the backed-up data from the location it is stored in. In this way, an application can have a database restored from virtually any media.
Method Summary |
|
openBackupSet - Method to open an existing database backup set. |
|
openRflFile - Method to open a RFL (Roll Forward Log) file. |
|
openIncFile - Method to open an incremental backup file. |
|
read - Method to read X number of bytes from the backup set. |
|
close - Method to close a backup set. |
|
abortFile - Method to abort the current file. |
Method Detail |
RCODE openBackupSet( void);
Method called by IF_DbSystem::dbRestore when it wants the application to open the database backup set.
Parameters In: none.
Parameters Out: none.
RCODE openRflFile(
FLMUINT uiFileNum);
Method called by IF_DbSystem::dbRestore when it wants the application to open a roll-forward log file to restore.
Parameters In:
FLMUINT uiFileNum
The RFL file number.
Parameters Out: none.
RCODE openIncFile(
FLMUINT uiFileNum);
Method called by IF_DbSystem::dbRestore when it wants the application to open an incremental backup file.
Parameters In:
FLMUINT uiFileNum The incremental backup file number.
Parameters Out: none.
RCODE read(
FLMUINT uiLength,
void * pvBuffer,
FLMUINT * puiBytesRead);
Method called by IF_DbSystem::dbRestore to read data from the backup set. The IF_RestoreClient object should return data from whatever file it was last told to open.
Parameters In:
FLMUINT uiLength Number of bytes of data to read in from the backup set.
Parameters Out:
void * pvBuffer The buffer the backup data is to be read into. FLMUINT * puiBytesRead The number of bytes that were read.
RCODE close( void);
Method called by IF_DbSystem::dbRestore to close the backup set.
Parameters In: none.
Parameters Out: none.
RCODE abortFile( void);
Method called by IF_DbSystem::dbRestore to abort reading from the current file in the backup set. The IF_RestoreClient object should close the current file and not read any more data from it.
Parameters In: none.
Parameters Out: none.