org.exoplatform.services.jcr.ext.replication.recovery
Class RecoveryReader

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.replication.recovery.AbstractFSAccess
      extended by org.exoplatform.services.jcr.ext.replication.recovery.RecoveryReader

public class RecoveryReader
extends AbstractFSAccess

Created by The eXo Platform SAS.

Version:
$Id: RecoveryReader.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Alex Reshetnyak

Field Summary
 
Fields inherited from class org.exoplatform.services.jcr.ext.replication.recovery.AbstractFSAccess
BUFFER_1KB, BUFFER_20X, BUFFER_8X, DATA_DIR_NAME, PREFIX_CHAR, PREFIX_REMOVED_DATA, REMOVED_SUFFIX
 
Constructor Summary
RecoveryReader(FileCleaner fileCleaner, java.io.File recoveryDir)
          RecoveryReader constructor.
 
Method Summary
 TransactionChangesLog getChangesLog(java.lang.String filePath)
          getChangesLog.
 java.util.List<java.lang.String> getFilePathList(java.util.Calendar timeStamp, java.lang.String ownName)
          getFilePathList.
 
Methods inherited from class org.exoplatform.services.jcr.ext.replication.recovery.AbstractFSAccess
getAsFile, getAsFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoveryReader

public RecoveryReader(FileCleaner fileCleaner,
                      java.io.File recoveryDir)
RecoveryReader constructor.

Parameters:
fileCleaner - the FileCleaner
recoveryDir - the recoveryDir
Method Detail

getChangesLog

public TransactionChangesLog getChangesLog(java.lang.String filePath)
                                    throws java.io.IOException,
                                           java.lang.ClassNotFoundException
getChangesLog.

Parameters:
filePath - full path to binary ChangesLog
Returns:
TransactionChangesLog return the TransactionChangesLog
Throws:
java.io.IOException - will be generated the IOException
java.lang.ClassNotFoundException - will be generated the ClassNotFoundException

getFilePathList

public java.util.List<java.lang.String> getFilePathList(java.util.Calendar timeStamp,
                                                        java.lang.String ownName)
                                                 throws java.io.IOException
getFilePathList.

Parameters:
timeStamp - up to date
ownName - owner name
Returns:
List list of binary changes log up to date
Throws:
java.io.IOException - will be generated IOException if fail.


Copyright © 2010 eXo Platform SAS. All Rights Reserved.