com.continuent.tungsten.replicator.backup
Interface BackupLocator

All Known Implementing Classes:
FileBackupLocator

public interface BackupLocator

Maintains references to storage used during backups. Encapsulates the backup location and logic required (if necessary) to mount storage for copying backup, e.g., by mounting an LVM snapshot.

Version:
1.0
Author:
Robert Hodges

Method Summary
 java.io.File getContents()
          Returns a reference to the file containing the backup.
 java.lang.String getDatabaseName()
           
 void open()
          Makes the storage contents for use.
 void release()
          Releases the storage.
 

Method Detail

open

void open()
Makes the storage contents for use. Must be called before looking at contents.


getContents

java.io.File getContents()
Returns a reference to the file containing the backup.


release

void release()
Releases the storage. This must be called after using the storage to ensure all resources are released.


getDatabaseName

java.lang.String getDatabaseName()