org.helidb.impl.txn.sc
Class SingleFileAndProxiedFileManager

java.lang.Object
  extended by org.helidb.impl.txn.sc.AbstractFileManager
      extended by org.helidb.impl.txn.sc.SingleFileAndProxiedFileManager
All Implemented Interfaces:
ShadowCopyTxnDatabaseFileManager
Direct Known Subclasses:
BPlusTreeIndexFileManager

public class SingleFileAndProxiedFileManager
extends AbstractFileManager

This ShadowCopyTxnDatabaseFileManager contains a SingleAndProxiedDatabaseFile and a proxied file manager for managing the proxied file.

Since:
1.0
Author:
Karl Gustafsson
In_jar:
helidb-shadow_copy_txn

Constructor Summary
SingleFileAndProxiedFileManager(ShadowCopyTxnDatabaseFileManager proxied, ReadWritableFile f, DirectoryView tempDir)
          Constructor.
 
Method Summary
 DatabaseFiles copyDatabaseFiles()
          Create a copy of the database file(s).
 DatabaseFiles getDatabaseFiles()
          Get the database files.
 
Methods inherited from class org.helidb.impl.txn.sc.AbstractFileManager
copyToTempFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleFileAndProxiedFileManager

public SingleFileAndProxiedFileManager(ShadowCopyTxnDatabaseFileManager proxied,
                                       ReadWritableFile f,
                                       DirectoryView tempDir)
Constructor.

Parameters:
proxied - The proxied file manager.
f - The database file managed by this object.
tempDir - A directory where temporary data can be stored.
Method Detail

getDatabaseFiles

public DatabaseFiles getDatabaseFiles()
Description copied from interface: ShadowCopyTxnDatabaseFileManager
Get the database files.

When this method is called on an object, it should always return a DatabaseFiles instance representing the same files.

Returns:
The database files.

copyDatabaseFiles

public DatabaseFiles copyDatabaseFiles()
Description copied from interface: ShadowCopyTxnDatabaseFileManager
Create a copy of the database file(s).

Returns:
A DatabaseFiles object representing the copied files.