com.continuent.tungsten.replicator.backup
Class FileBackupLocator

java.lang.Object
  extended by com.continuent.tungsten.replicator.backup.FileBackupLocator
All Implemented Interfaces:
BackupLocator

public class FileBackupLocator
extends java.lang.Object
implements BackupLocator


Constructor Summary
FileBackupLocator(java.io.File backup, boolean deleteOnRelease)
           
FileBackupLocator(java.lang.String databaseName, java.io.File backup, boolean deleteOnRelease)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBackupLocator

public FileBackupLocator(java.io.File backup,
                         boolean deleteOnRelease)

FileBackupLocator

public FileBackupLocator(java.lang.String databaseName,
                         java.io.File backup,
                         boolean deleteOnRelease)
Method Detail

getContents

public java.io.File getContents()
Description copied from interface: BackupLocator
Returns a reference to the file containing the backup.

Specified by:
getContents in interface BackupLocator

getDatabaseName

public java.lang.String getDatabaseName()
Specified by:
getDatabaseName in interface BackupLocator

open

public void open()
Description copied from interface: BackupLocator
Makes the storage contents for use. Must be called before looking at contents.

Specified by:
open in interface BackupLocator

release

public void release()
Description copied from interface: BackupLocator
Releases the storage. This must be called after using the storage to ensure all resources are released.

Specified by:
release in interface BackupLocator