This class defines a BackupManager that is responsible for registering
backupers and retrieving them as needed for backup/restore operations.
author: Emmanuel Cecchet version: 1.0
Inner Class :static class DumpTransferServerThread extends Thread
Fetches a dumpFile from a remote dumpFileServer. The remote dump file to
fetch is specified by its name and path. The connection to the remote
dumpFileServer is initiated and authenticated using the specified
DumpTransferInfo. The dump file is then fetched and stored locally at the
same path as it was on the remote site.
Parameters: info - the DumpTransferInfo specifying where to get the dump from. Parameters: path - the path where the dump is stored (both remote and local). Parameters: dumpName - the name of the remote dump to fetch. throws: IOException - if a networking error occurs during the fetch process. throws: BackupException - if an authentication error occurs, or if parametersare invalid.
Get the first backuper that supports the given dump format. If no backuper
supporting that format can be found, null is returned.
Parameters: format - the dump format that the backuper must handle a backuper or null if not found
Retrieve a backuper given its name. If the backuper has not been registered
null is returned.
Parameters: name - the backuper to look for the backuper or null if not found
getBackuperNames
public synchronized String[] getBackuperNames()(Code)
Get the names of the Backupers available from this
BackupManager.
an (possibly 0-sized) array of String representingthe name of the Backupers
Register a new backuper under a logical name.
Parameters: name - backuper logical name Parameters: backuper - the backuper instance throws: BackupException - if a backuper is null or a backuper has alreadybeen registered with the given name.
Sets up a DumpFileServer for a remote client to use with fetchDumpFile.
Parameters: dumpServerIpAddress - IP address of the dump server a DumpTransferInfo to be used by the client to connect andauthenticate to this dumpFileServer. throws: IOException - if the server socket can not be created.
Sets up a DumpFileServer for a remote client to use with fetchDumpFile.
a DumpTransferInfo to be used by the client to connect andauthenticate to this dumpFileServer. throws: IOException - if the server socket can not be created.
unregisterBackuper
public synchronized boolean unregisterBackuper(String name)(Code)
Unregister a Backuper given its logical name.
Parameters: name - the name of the backuper to unregister true if the backuper was removed successfully, false if it was notregistered