net.sf.farrago.syslib
Class FarragoSystemRestore

java.lang.Object
  extended by net.sf.farrago.syslib.FarragoSystemRestore

public class FarragoSystemRestore
extends Object

FarragoSystemRestore implements restore of the Farrago catalog and Fennel data from a previously created backup.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/syslib/FarragoSystemRestore.java#6 $
Author:
Zelaine Fong

Field Summary
private  String archiveDirectory
           
(package private)  FarragoBackupType backupType
           
(package private)  Long dbDatSize
           
(package private)  Boolean isCompressed
           
(package private)  Long lowerBoundCsn
           
private  EigenbaseTimingTracer timingTracer
           
private static Logger tracer
           
(package private)  Long upperBoundCsn
           
 
Constructor Summary
FarragoSystemRestore(String archiveDirectory)
           
 
Method Summary
private  void checkMissingProperty(String name, Object val)
           
private  void readPropertyFile()
           
private  void restoreCatalog(FarragoReposTxnContext reposTxnContext, FarragoRepos repos)
           
 void restoreDatabase(boolean includeCatalog)
          Restores the database from a backup, optionally restoring the catalog.
private  void restoreFennelData(FennelExecutionHandle execHandle, FarragoDatabase db)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tracer

private static final Logger tracer

archiveDirectory

private String archiveDirectory

dbDatSize

Long dbDatSize

backupType

FarragoBackupType backupType

lowerBoundCsn

Long lowerBoundCsn

upperBoundCsn

Long upperBoundCsn

isCompressed

Boolean isCompressed

timingTracer

private EigenbaseTimingTracer timingTracer
Constructor Detail

FarragoSystemRestore

public FarragoSystemRestore(String archiveDirectory)
Method Detail

restoreDatabase

public void restoreDatabase(boolean includeCatalog)
                     throws Exception
Restores the database from a backup, optionally restoring the catalog.

Parameters:
includeCatalog - if true, also restore the catalog data
Throws:
Exception

restoreFennelData

private void restoreFennelData(FennelExecutionHandle execHandle,
                               FarragoDatabase db)
                        throws Exception
Throws:
Exception

restoreCatalog

private void restoreCatalog(FarragoReposTxnContext reposTxnContext,
                            FarragoRepos repos)
                     throws Exception
Throws:
Exception

readPropertyFile

private void readPropertyFile()
                       throws Exception
Throws:
Exception

checkMissingProperty

private void checkMissingProperty(String name,
                                  Object val)