|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.backup.AbstractBackupAgent
com.continuent.tungsten.replicator.backup.postgresql.PostgreSqlDumpAgent
public class PostgreSqlDumpAgent
Implements a backup agent that works using pg_dump to dump data and pg_restore to restore.
| Field Summary |
|---|
| Fields inherited from class com.continuent.tungsten.replicator.backup.AbstractBackupAgent |
|---|
capabilities, logger, processHelper, restoreCompleted |
| Constructor Summary | |
|---|---|
PostgreSqlDumpAgent()
Creates a new PostgreSqlDumpAgent object |
|
| Method Summary | |
|---|---|
BackupSpecification |
backup()
Back up the database. |
void |
configure()
Complete plug-in configuration. |
void |
release()
Release all resources used by plug-in. |
protected void |
restoreOneLocator(BackupLocator locator)
restoreOneLocator is used to restore a database using one locator. |
void |
setDatabaseToConnect(java.lang.String databaseToConnect)
Sets the database to be used while connecting. |
void |
setDriver(java.lang.String driver)
Set the PostgreSQL JDBC driver name. |
void |
setDumpDir(java.lang.String dumpDirName)
Sets the directory name where dumps should be stored. |
void |
setHost(java.lang.String host)
Sets the host to be used while backuping / restoring to the given value. |
void |
setHotBackupEnabled(boolean hotBackupEnabled)
If true, hot backup is enabled. |
void |
setIgnoreDatabaseList(java.lang.String ignoreDatabaseList)
Sets the list of databases that should not be dumped by a backup operation. |
void |
setPassword(java.lang.String password)
Sets the password to be used while connecting to the database. |
void |
setPgdumpOptions(java.lang.String pgdumpOptions)
Sets options to use for pg_dump. |
void |
setPgrestoreOptions(java.lang.String pgrestoreOptions)
Sets options to provide pg_restore utility. |
void |
setPort(int port)
Sets the port to be used while connecting to the database. |
void |
setUrl(java.lang.String url)
Sets the URL used to connect to the PostgreSQL instance. |
void |
setUser(java.lang.String user)
Sets the user to be used while connecting to the database. |
| Methods inherited from class com.continuent.tungsten.replicator.backup.AbstractBackupAgent |
|---|
capabilities, completeRestore, initRestore, restore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PostgreSqlDumpAgent()
PostgreSqlDumpAgent object
| Method Detail |
|---|
public void setHost(java.lang.String host)
host - the host name or ip to be usedpublic void setPort(int port)
port - the port numberpublic void setUser(java.lang.String user)
user - user name to be used while connecting to the databasepublic void setPassword(java.lang.String password)
password - the password to be usedpublic void setDumpDir(java.lang.String dumpDirName)
dumpDirName - a path to the directorypublic void setIgnoreDatabaseList(java.lang.String ignoreDatabaseList)
ignoreDatabaseList - Space separated list of databases that will be
ignoredpublic void setDatabaseToConnect(java.lang.String databaseToConnect)
databaseToConnect - the database namepublic void setPgdumpOptions(java.lang.String pgdumpOptions)
public void setPgrestoreOptions(java.lang.String pgrestoreOptions)
public void setHotBackupEnabled(boolean hotBackupEnabled)
public void setUrl(java.lang.String url)
public void setDriver(java.lang.String driver)
public BackupSpecification backup()
throws BackupException
backup in interface BackupAgentbackup in class AbstractBackupAgentBackupExceptionAbstractBackupAgent.backup()
protected void restoreOneLocator(BackupLocator locator)
throws BackupException,
java.io.FileNotFoundException
restoreOneLocator in class AbstractBackupAgentlocator - the locator to be used to restore the database
BackupException - if something happens while restoring
java.io.FileNotFoundException - if the dump file cannot be foundAbstractBackupAgent.restoreOneLocator(com.continuent.tungsten.replicator.backup.BackupLocator)
public void configure()
throws BackupException
configure in interface BackupPluginconfigure in class AbstractBackupAgentBackupExceptionBackupPlugin.configure()
public void release()
throws BackupException
release in interface BackupPluginrelease in class AbstractBackupAgentBackupExceptionBackupPlugin.release()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||