|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.backup.AbstractBackupAgent
public abstract class AbstractBackupAgent
This class defines a AbstractBackupAgent
| Field Summary | |
|---|---|
protected BackupCapabilities |
capabilities
|
protected static org.apache.log4j.Logger |
logger
|
protected ProcessHelper |
processHelper
|
protected boolean |
restoreCompleted
|
| Constructor Summary | |
|---|---|
AbstractBackupAgent()
|
|
| Method Summary | |
|---|---|
abstract BackupSpecification |
backup()
Back up the database. |
BackupCapabilities |
capabilities()
Returns capabilities of this backup agent. |
protected void |
completeRestore()
Post-restore operations. |
void |
configure()
Complete plug-in configuration. |
protected void |
initRestore()
Pre-restore operations. |
abstract void |
release()
Release all resources used by plug-in. |
void |
restore(BackupSpecification bspec)
Restore the database from a backup. |
protected abstract void |
restoreOneLocator(BackupLocator locator)
restoreOneLocator is used to restore a database using one locator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger logger
protected ProcessHelper processHelper
protected boolean restoreCompleted
protected BackupCapabilities capabilities
| Constructor Detail |
|---|
public AbstractBackupAgent()
| Method Detail |
|---|
public abstract BackupSpecification backup()
throws BackupException,
java.lang.InterruptedException
backup in interface BackupAgentBackupException
java.lang.InterruptedExceptionBackupAgent.backup()
public void restore(BackupSpecification bspec)
throws BackupException,
java.lang.InterruptedException
restore in interface BackupAgentBackupException
java.lang.InterruptedExceptionBackupAgent.restore(com.continuent.tungsten.replicator.backup.BackupSpecification)
protected void initRestore()
throws BackupException
BackupException - if anything wrong happened while preparing to
restoreprotected void completeRestore()
protected abstract void restoreOneLocator(BackupLocator locator)
throws BackupException,
java.io.FileNotFoundException
locator - the locator to be used to restore the database
BackupException - if something happens while restoring
java.io.FileNotFoundException - if the dump file cannot be found
public void configure()
throws BackupException
configure in interface BackupPluginBackupExceptionBackupPlugin.configure()
public abstract void release()
throws BackupException
release in interface BackupPluginBackupExceptionBackupPlugin.release()public BackupCapabilities capabilities()
capabilities in interface BackupAgentBackupAgent.capabilities()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||