org.helidb.impl.txn.sc
Class AbstractFileManager

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

public abstract class AbstractFileManager
extends Object
implements ShadowCopyTxnDatabaseFileManager

Abstract base class for ShadowCopyTxnDatabaseFileManager implementations.

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

Constructor Summary
AbstractFileManager()
           
 
Method Summary
protected  EFile copyToTempFile(ReadWritableFile f, DirectoryView tmpDir)
          Copy the contents of the supplied file to a new file in the temporary directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.helidb.impl.txn.sc.ShadowCopyTxnDatabaseFileManager
copyDatabaseFiles, getDatabaseFiles
 

Constructor Detail

AbstractFileManager

public AbstractFileManager()
Method Detail

copyToTempFile

protected EFile copyToTempFile(ReadWritableFile f,
                               DirectoryView tmpDir)
Copy the contents of the supplied file to a new file in the temporary directory.

Parameters:
f - The file to copy.
tmpDir - The directory where the new file should be created.
Returns:
The copy.