|
||||||||||
| 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.generic.ScriptDumpAgent
public class ScriptDumpAgent
Implements a backup agent that works by calling an external script. The script must support the following semantics:
| Operation | Syntax | Output |
| Backup | ${script} -backup -properties filename [-options ${options}]
|
0 for success; in addition, the script must write the name of the backup file into the file name provide by the -properties option. |
| Backup |
${script} -restore -properties filename [-options ${options}] |
0 for success; the file to restore is provided in the file indicated by -properties |
file=/tmp/backup/store-0000000021-custom-backup.tar.gz
| Field Summary |
|---|
| Fields inherited from class com.continuent.tungsten.replicator.backup.AbstractBackupAgent |
|---|
capabilities, logger, restoreCompleted |
| Constructor Summary | |
|---|---|
ScriptDumpAgent()
|
|
| Method Summary | |
|---|---|
BackupSpecification |
backup()
Run backup by invoking a script. |
void |
configure()
Complete plug-in configuration. |
java.lang.String |
getCommandPrefix()
|
java.lang.String |
getLogFilename()
|
java.lang.String |
getOptions()
|
java.lang.String |
getScript()
|
boolean |
isHotBackupEnabled()
|
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 |
setCommandPrefix(java.lang.String commandPrefix)
|
void |
setHotBackupEnabled(boolean hotBackupEnabled)
|
void |
setLogFilename(java.lang.String logFilename)
|
void |
setOptions(java.lang.String options)
|
void |
setScript(java.lang.String script)
|
| 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 ScriptDumpAgent()
| Method Detail |
|---|
public java.lang.String getScript()
public void setScript(java.lang.String script)
public java.lang.String getCommandPrefix()
public void setCommandPrefix(java.lang.String commandPrefix)
public java.lang.String getOptions()
public void setOptions(java.lang.String options)
public boolean isHotBackupEnabled()
public void setHotBackupEnabled(boolean hotBackupEnabled)
public java.lang.String getLogFilename()
public void setLogFilename(java.lang.String logFilename)
public BackupSpecification backup()
throws BackupException
backup in interface BackupAgentbackup in class AbstractBackupAgentBackupExceptionBackupAgent.backup()
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()
protected void restoreOneLocator(BackupLocator locator)
throws BackupException,
java.io.FileNotFoundException
AbstractBackupAgent
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 found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||