com.continuent.tungsten.replicator.backup.mysql
Class MySqlDumpAgent
java.lang.Object
com.continuent.tungsten.replicator.backup.AbstractBackupAgent
com.continuent.tungsten.replicator.backup.mysql.MySqlDumpAgent
- All Implemented Interfaces:
- BackupAgent, BackupPlugin
public class MySqlDumpAgent
- extends AbstractBackupAgent
Implements a backup agent that works using mysqldump to dump data and mysql
to restore.
- Version:
- 1.0
- Author:
- Robert Hodges
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySqlDumpAgent
public MySqlDumpAgent()
getHost
public java.lang.String getHost()
setHost
public void setHost(java.lang.String host)
getPort
public int getPort()
setPort
public void setPort(int port)
getUser
public java.lang.String getUser()
setUser
public void setUser(java.lang.String user)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String password)
getDumpDirName
public java.lang.String getDumpDirName()
setDumpDir
public void setDumpDir(java.lang.String dumpDirName)
getMysqldumpOptions
public java.lang.String getMysqldumpOptions()
setMysqldumpOptions
public void setMysqldumpOptions(java.lang.String mysqldumpOptions)
getMysqlOptions
public java.lang.String getMysqlOptions()
setMysqlOptions
public void setMysqlOptions(java.lang.String mysqlOptions)
isHotBackupEnabled
public boolean isHotBackupEnabled()
setHotBackupEnabled
public void setHotBackupEnabled(boolean hotBackupEnabled)
backup
public BackupSpecification backup()
throws BackupException
- Description copied from class:
AbstractBackupAgent
- Back up the database.
- Specified by:
backup in interface BackupAgent- Specified by:
backup in class AbstractBackupAgent
- Throws:
BackupException- See Also:
BackupAgent.backup()
configure
public void configure()
throws BackupException
- Complete plug-in configuration. This is called after setters are
invoked.
- Specified by:
configure in interface BackupPlugin- Overrides:
configure in class AbstractBackupAgent
- Throws:
BackupException- See Also:
BackupPlugin.configure()
release
public void release()
throws BackupException
- Release all resources used by plug-in. This is called before the
plug-in is deallocated.
- Specified by:
release in interface BackupPlugin- Specified by:
release in class AbstractBackupAgent
- Throws:
BackupException- See Also:
BackupPlugin.release()
restoreOneLocator
protected void restoreOneLocator(BackupLocator locator)
throws BackupException,
java.io.FileNotFoundException
- restoreOneLocator is used to restore a database using one locator.
- Specified by:
restoreOneLocator in class AbstractBackupAgent
- Parameters:
locator - the locator to be used to restore the database
- Throws:
BackupException - if something happens while restoring
java.io.FileNotFoundException - if the dump file cannot be found- See Also:
AbstractBackupAgent.restoreOneLocator(com.continuent.tungsten.replicator.backup.BackupLocator)