org.xcmis.search.lucene.index
Class FSIndexTransactionService

java.lang.Object
  extended by org.xcmis.search.lucene.index.FSIndexTransactionService
All Implemented Interfaces:
IndexTransactionService

public class FSIndexTransactionService
extends Object
implements IndexTransactionService

Created by The eXo Platform SAS.
Date:

Version:
$Id: FSIndexTransactionService.java 2 2010-02-04 17:21:49Z andrew00x $
Author:
Karpenko Sergiy

Constructor Summary
FSIndexTransactionService(File storageDir, ConcurrentDirectoryFactory lockFactory)
           
 
Method Summary
protected  List<File> getFileList(File dir)
          Return file list from storage.
 ConcurrentDirectoryFactory getLockFactory()
           
 File getStorageDir()
           
 List<TransactionLog> getTransactionLogs()
           
 boolean hasUncommitedTransactions()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSIndexTransactionService

public FSIndexTransactionService(File storageDir,
                                 ConcurrentDirectoryFactory lockFactory)
Method Detail

getLockFactory

public final ConcurrentDirectoryFactory getLockFactory()

getStorageDir

public final File getStorageDir()

getTransactionLogs

public List<TransactionLog> getTransactionLogs()
                                        throws TransactionLogException
Throws:
TransactionLogException

hasUncommitedTransactions

public boolean hasUncommitedTransactions()


getFileList

protected List<File> getFileList(File dir)
Return file list from storage.

Parameters:
dir - - storage of files
Returns:
Complete list of storage files.Or empty list if there is no files.


Copyright © 2011 eXo Platform SAS. All Rights Reserved.