com.continuent.tungsten.replicator.backup
Interface BackupAgent

All Superinterfaces:
BackupPlugin
All Known Implementing Classes:
AbstractBackupAgent, DummyBackupAgent, MySqlDumpAgent, MySqlLvmDumpAgent, PostgreSqlDumpAgent, ScriptDumpAgent

public interface BackupAgent
extends BackupPlugin

Denotes a class that implements a backup agent capable of backup and restore operations.

Version:
1.0
Author:
Robert Hodges

Method Summary
 BackupSpecification backup()
          Back up the database.
 BackupCapabilities capabilities()
          Returns capabilities of this backup agent.
 void restore(BackupSpecification bspec)
          Restore the database from a backup.
 
Methods inherited from interface com.continuent.tungsten.replicator.backup.BackupPlugin
configure, release
 

Method Detail

backup

BackupSpecification backup()
                           throws BackupException,
                                  java.lang.InterruptedException
Back up the database.

Throws:
BackupException
java.lang.InterruptedException

restore

void restore(BackupSpecification bspec)
             throws BackupException,
                    java.lang.InterruptedException
Restore the database from a backup.

Throws:
BackupException
java.lang.InterruptedException

capabilities

BackupCapabilities capabilities()
Returns capabilities of this backup agent.