|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.controller.backup.AbstractPostgreSQLBackuper
This abstract class provides base methods for PostgreSQL backupers.
Field Summary | |
(package private) static Trace |
logger
|
protected java.util.HashMap |
optionsMap
|
protected java.lang.String |
optionsString
|
Constructor Summary | |
AbstractPostgreSQLBackuper()
Creates a new AbstractPostgreSQLBackuper object |
Method Summary | |
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. |
protected java.lang.String |
getDatabaseNameFromURL(java.lang.String url)
Get the database name of a given PostgreSQL connection string |
protected java.lang.String |
getDumpPhysicalPath(java.lang.String path,
java.lang.String dumpName)
Get the dump physical path from its logical name |
protected java.lang.String |
getHostFromURL(java.lang.String url)
Get the host of a given PostgreSQL connection string |
java.lang.String |
getOptions()
Retrieve the backuper options that were used to initialize the backuper. |
protected java.lang.String |
getPortFromURL(java.lang.String url)
Get the port of a given PostgreSQL connection string |
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(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.cjdbc.controller.backup.Backuper |
backup, getDumpFormat, restore |
Field Detail |
static Trace logger
protected java.util.HashMap optionsMap
protected java.lang.String optionsString
Constructor Detail |
public AbstractPostgreSQLBackuper()
AbstractPostgreSQLBackuper
object
Method Detail |
public java.lang.String getOptions()
Backuper
getOptions
in interface Backuper
Backuper.getOptions()
public void setOptions(java.lang.String options)
Backuper
setOptions
in interface Backuper
options
- Backuper specific optionsBackuper.setOptions(java.lang.String)
public void deleteDump(java.lang.String path, java.lang.String dumpName) throws BackupException
Backuper
deleteDump
in interface Backuper
path
- the path where to retrieve the dumpdumpName
- the dump to delete
BackupException
- if we failed to delete the dumpBackuper.deleteDump(java.lang.String,
java.lang.String)
protected java.lang.String getDumpPhysicalPath(java.lang.String path, java.lang.String dumpName)
path
- the path where the dump is storeddumpName
- dump logical name
protected java.lang.String getHostFromURL(java.lang.String url)
url
- The full PostgreSQL URL
protected java.lang.String getPortFromURL(java.lang.String url)
url
- The full PostgreSQL URL
protected java.lang.String getDatabaseNameFromURL(java.lang.String url)
url
- The full PostgreSQL URL
public void fetchDump(DumpTransferInfo dumpTransferInfo, java.lang.String path, java.lang.String dumpName) throws BackupException
Backuper
fetchDump
in interface Backuper
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.Backuper.fetchDump(org.objectweb.cjdbc.controller.backup.DumpTransferInfo,
java.lang.String, java.lang.String)
public DumpTransferInfo setupServer()
Backuper
setupServer
in interface Backuper
Backuper.setupServer()
public BackupManager getBackupManager()
Backuper
getBackupManager
in interface Backuper
Backuper.getBackupManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |