|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a Backuper that is in charge of doing backup/restore operations and manage dumps according to its own internal format. The user will manipulate logical names and the Backuper is responsible to maintain the logical name/physical name mapping.
Method Summary | |
java.util.Date |
backup(DatabaseBackend backend,
java.lang.String login,
java.lang.String password,
java.lang.String dumpName,
java.lang.String path,
java.util.ArrayList tables)
Create a backup from the content of a backend. |
void |
deleteDump(java.lang.String path,
java.lang.String dumpName)
Delete the specified dump. |
void |
fetchDump(DumpTransferInfo dumpTransferInfo,
java.lang.String path,
java.lang.String dumpName)
Client side: Fetch a remote dump from specified dump server. |
BackupManager |
getBackupManager()
Return the BackupManager this Backuper belongs to. |
java.lang.String |
getDumpFormat()
Returns a String representing the format handled by this Backuper. |
java.lang.String |
getOptions()
Retrieve the backuper options that were used to initialize the backuper. |
void |
restore(DatabaseBackend backend,
java.lang.String login,
java.lang.String password,
java.lang.String dumpName,
java.lang.String path,
java.util.ArrayList tables)
Restore a dump on a specific backend. |
void |
setOptions(java.lang.String options)
Options that can be set at backuper initialization. |
DumpTransferInfo |
setupServer()
Server side: setup a server and returns a DumpTransferInfo suitable for authenticated communication by a client using fetchDump(). |
Method Detail |
public java.lang.String getDumpFormat()
public java.lang.String getOptions()
setOptions(String)
public void setOptions(java.lang.String options)
options
- Backuper specific optionspublic java.util.Date backup(DatabaseBackend backend, java.lang.String login, java.lang.String password, java.lang.String dumpName, java.lang.String path, java.util.ArrayList tables) throws BackupException
backend
- the target backend to backuplogin
- the login to use to connect to the database for the backup
operationpassword
- the password to use to connect to the database for the
backup operationdumpName
- the name of the dump to createpath
- the path where to store the dumptables
- the list of tables to backup, null means all tables
BackupException
- if the backup operation failspublic void restore(DatabaseBackend backend, java.lang.String login, java.lang.String password, java.lang.String dumpName, java.lang.String path, java.util.ArrayList tables) throws BackupException
backend
- the target backend to restore tologin
- the login to use to connect to the database for the restore
operationpassword
- the password to use to connect to the database for the
restore operationdumpName
- the name of the dump to restorepath
- the path where to retrieve the dumptables
- the list of tables to restore, null means all tables
BackupException
- if the restore operation failedpublic void deleteDump(java.lang.String path, java.lang.String dumpName) throws BackupException
path
- the path where to retrieve the dumpdumpName
- the dump to delete
BackupException
- if we failed to delete the dumppublic void fetchDump(DumpTransferInfo dumpTransferInfo, java.lang.String path, java.lang.String dumpName) throws BackupException, java.io.IOException
dumpTransferInfo
- the address and session key of the dump server to
contact for fetching.path
- the path part of the remote dump spec (interpreted by server)dumpName
- the name part of the remote dump spec (interpreted by
server)
BackupException
- in any error case: authentication error, transfer
error, else.
java.io.IOException
- if an error occurs during the transferpublic DumpTransferInfo setupServer() throws java.io.IOException
java.io.IOException
- if an error occurs during the transferpublic BackupManager getBackupManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |