public class BackupFileLocation extends Object implements BackupArchiveLocation
| Constructor and Description |
|---|
BackupFileLocation()
Creates an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
URL |
getArchiveLocation(String relativeArchivePath)
Returns a URL that represents the location where a backup file should be
stored.
|
void |
initialize(String nodeName,
File configFile)
The initialize method should be invoked exactly once after the creation
of the object via its no arguments constructor.
|
public BackupFileLocation()
public void initialize(String nodeName, File configFile)
This implementation uses the configuration argument as pathname of the base directory for all archive files.
initialize in interface BackupArchiveLocationconfigFile - the absolute pathname of the base directorynodeName - the node name of the environment associated with the
backupIllegalArgumentException - if the argument is not an absolute
pathnamepublic URL getArchiveLocation(String relativeArchivePath)
This implementation a file: URL rooted in the directory
specified by the argument passed to the constructor, followed by a
subdirectory for the node name, and then the relative archive path.
getArchiveLocation in interface BackupArchiveLocationrelativeArchivePath - the path of the backup fileCopyright © 2024. All rights reserved.