| java.lang.Object org.apache.derbyTesting.functionTests.tests.store.OnlineBackup
OnlineBackup | public class OnlineBackup implements Runnable(Code) | | This class provides functionalty for tests to perform
online backup in a separate thread. And functions to
create/restore/rollforard recovery from the backup.
author: Suresh Thalamati version: 1.0 |
createFromBackup | public void createFromBackup(String newDbName) throws SQLException(Code) | | Create a new database from the backup copy taken earlier.
Parameters: newDbName - name of the database to be created. |
isRunning | public synchronized boolean isRunning()(Code) | | Check if backup is running ?
true if backup is running.false otherwise. |
restoreFromBackup | public void restoreFromBackup() throws SQLException(Code) | | Restore the database from the backup copy taken earlier.
|
run | public void run()(Code) | | implementation of run() method in the Runnable interface, which
is invoked when a thread is started using this class object.
Performs online backup.
|
waitForBackupToBegin | public void waitForBackupToBegin() throws Exception(Code) | | Wait for the backup to start.
|
|
|