org.xcmis.search.lucene.index
Class StartableIndexingService

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
                  extended by org.xcmis.search.lucene.index.LuceneIndexingService
                      extended by org.xcmis.search.lucene.index.StartableIndexingService
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

public class StartableIndexingService
extends LuceneIndexingService

Created by The eXo Platform SAS.

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

Field Summary
 
Fields inherited from class org.xcmis.search.lucene.index.TransactionableIndexDataManager
TRANSACTION_LOG_STORAGE_NAME
 
Constructor Summary
StartableIndexingService(IndexConfiguration configuration, 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.LuceneIndexingService
documentExists, getFieldNames, softCleanIndex
 
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
 

Constructor Detail

StartableIndexingService

public StartableIndexingService(IndexConfiguration configuration,
                                IndexRecoveryTool indexRecoveryTool)
                         throws IndexConfigurationException,
                                IndexException
Parameters:
configuration -
Throws:
IndexConfigurationException
IndexException
Method Detail

save

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

Specified by:
save in interface IndexDataKeeper<org.apache.lucene.document.Document>
Overrides:
save in class TransactionableIndexDataManager
Throws:
IndexException
IndexTransactionException
See Also:
TransactionableIndexDataManager.save(org.xcmis.search.lucene.index.IndexTransaction)

start

public void start()
Allocate resources

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

stop

public void stop()
Dispose resources

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


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.