org.helidb.impl.txn.sc
Class SingleFileManager

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

public class SingleFileManager
extends AbstractFileManager

This ShadowCopyTxnDatabaseFileManager manages a SingleDatabaseFile.

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

Constructor Summary
SingleFileManager(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

SingleFileManager

public SingleFileManager(ReadWritableFile f,
                         DirectoryView tempDir)
Constructor.

Parameters:
f - The database file.
tempDir - A directory where temporary files can be put.
Method Detail

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.

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.