org.xcmis.search.lucene.index
Class TransactionableIndexDataManager

java.lang.Object
  extended by org.xcmis.search.lucene.index.LocalStorageIndexDataManager
      extended by org.xcmis.search.lucene.index.LocalIndexDataManagerProxy
          extended by org.xcmis.search.lucene.index.CacheableIndexDataManager
              extended by org.xcmis.search.lucene.index.TransactionableIndexDataManager
All Implemented Interfaces:
IndexDataConsumer<org.apache.lucene.index.IndexReader,org.apache.lucene.document.Document,org.apache.lucene.store.Directory>, IndexDataKeeper<org.apache.lucene.document.Document>, IndexDataManager<org.apache.lucene.document.Document,org.apache.lucene.index.IndexReader,org.apache.lucene.store.Directory>, LuceneIndexDataManager, IndexAggregator, StartableResource, Startable
Direct Known Subclasses:
LuceneIndexingService

public class TransactionableIndexDataManager
extends CacheableIndexDataManager

Created by The eXo Platform SAS.

Version:
$Id: TransactionableIndexDataManager.java 2 2010-02-04 17:21:49Z andrew00x $
Author:
Sergey Kabashnyuk

Field Summary
protected static String TRANSACTION_LOG_STORAGE_NAME
           
 
Constructor Summary
TransactionableIndexDataManager(IndexConfiguration indexConfuguration, IndexRecoveryTool indexRecoveryTool)
           
 
Method Summary
 IndexTransactionModificationReport save(IndexTransaction<org.apache.lucene.document.Document> changes)
          Saves the IndexTransaction from this storage
 void start()
          Allocate resources
 void stop()
          Dispose resources
 
Methods inherited from class org.xcmis.search.lucene.index.CacheableIndexDataManager
aggregate, getDirectory, getDirectorySize, getDocument, getDocumentCount, getIndexReader, getLastModifedTime
 
Methods inherited from class org.xcmis.search.lucene.index.LocalStorageIndexDataManager
isStarted, isStoped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSACTION_LOG_STORAGE_NAME

protected static final String TRANSACTION_LOG_STORAGE_NAME
See Also:
Constant Field Values
Constructor Detail

TransactionableIndexDataManager

public TransactionableIndexDataManager(IndexConfiguration indexConfuguration,
                                       IndexRecoveryTool indexRecoveryTool)
                                throws IndexException,
                                       IndexConfigurationException
Throws:
IndexException
IndexConfigurationException
Method Detail

save

public IndexTransactionModificationReport save(IndexTransaction<org.apache.lucene.document.Document> changes)
                                        throws IndexException,
                                               IndexTransactionException
Saves the IndexTransaction from this storage

Specified by:
save in interface IndexDataKeeper<org.apache.lucene.document.Document>
Overrides:
save in class CacheableIndexDataManager
Throws:
IndexException
IndexTransactionException

start

public void start()
Allocate resources

Specified by:
start in interface StartableResource
Specified by:
start in interface Startable
Overrides:
start in class LocalStorageIndexDataManager

stop

public void stop()
Dispose resources

Specified by:
stop in interface StartableResource
Specified by:
stop in interface Startable
Overrides:
stop in class CacheableIndexDataManager


Copyright © 2010 eXo Platform SAS. All Rights Reserved.