org.alfresco.repo.search.impl.lucene
Class AVMLuceneIndexerAndSearcherFactory

java.lang.Object
  extended by org.alfresco.repo.search.impl.lucene.AbstractIndexerAndSearcher
      extended by org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory
          extended by org.alfresco.repo.search.impl.lucene.AVMLuceneIndexerAndSearcherFactory
All Implemented Interfaces:
javax.transaction.xa.XAResource, LuceneConfig, LuceneIndexerAndSearcher, IndexerAndSearcher, SupportsBackgroundIndexing, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware

public class AVMLuceneIndexerAndSearcherFactory
extends AbstractLuceneIndexerAndSearcherFactory
implements SupportsBackgroundIndexing

Factory for AVM indexers and searchers


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory
AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupComponent, AbstractLuceneIndexerAndSearcherFactory.LuceneIndexBackupJob
 
Nested classes/interfaces inherited from interface org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcher
LuceneIndexerAndSearcher.ReadOnlyWork
 
Field Summary
protected  TransactionService transactionService
           
 
Fields inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory
tenantService
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Constructor Summary
AVMLuceneIndexerAndSearcherFactory()
           
 
Method Summary
protected  LuceneIndexer createIndexer(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String deltaId)
          Encapsulate creating an indexer
protected  java.util.List getAllStores()
           
protected  org.alfresco.service.cmr.search.SearchService getNodeSearcher()
          Get node-based searcher (for "selectNodes / selectProperties")
protected  LuceneSearcher getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef, LuceneIndexer indexer)
          Get a searcher over the index and the current delta
 void setAvmService(AVMService avmService)
          Set the AVM service
 void setAvmSnapShotTriggeredIndexingMethodInterceptor(AVMSnapShotTriggeredIndexingMethodInterceptor avmSnapShotTriggeredIndexingMethodInterceptor)
           
 void setAvmSyncService(AVMSyncService avmSyncService)
          Set the AVM sync service
 void setContentService(ContentService contentService)
          Set the content service
 void setContentStore(ContentStore contentStore)
          Set the content service
 void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
          Set the dictionary service
 void setFullTextSearchIndexer(FullTextSearchIndexer fullTextSearchIndexer)
          Register the full text searcher (done by the seracher bean to break cyclic bean defs)
 void setNameSpaceService(org.alfresco.service.namespace.NamespaceService nameSpaceService)
          Set the name space service
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Set the node service
 void setTransactionService(TransactionService transactionService)
           
 
Methods inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory
commit, commit, deleteDirectory, destroy, doReadOnly, end, flush, forget, getApplicationContext, getBulkLoader, getCommitLockTimeout, getDefaultMLIndexAnalysisMode, getDefaultMLSearchAnalysisMode, getFairLocking, getIndexer, getIndexerBatchSize, getIndexerMaxFieldLength, getIndexRootLocation, getLockDirectory, getMaxDocIdCacheSize, getMaxDocsForInMemoryIndex, getMaxDocsForInMemoryMerge, getMaxDocumentCacheSize, getMaxIsCategoryCacheSize, getMaxLinkAspectCacheSize, getMaxParentCacheSize, getMaxPathCacheSize, getMaxRamInMbForInMemoryIndex, getMaxRamInMbForInMemoryMerge, getMaxTransformationTime, getMaxTypeCacheSize, getMergerMaxBufferedDocs, getMergerMaxMergeDocs, getMergerMergeFactor, getMergerRamBufferSizeMb, getMergerTargetIndexCount, getMergerTargetOverlayCount, getMergerTargetOverlaysBlockingFactor, getPostSortDateTime, getQueryLanguage, getQueryMaxClauses, getQueryRegister, getSearcher, getTermIndexInterval, getThreadPoolExecutor, getTransactionTimeout, getUseNioMemoryMapping, getWriteLockTimeout, getWriterMaxBufferedDocs, getWriterMaxMergeDocs, getWriterMergeFactor, getWriterRamBufferSizeMb, isCacheEnabled, isContentIndexingEnabled, isSameRM, main, prepare, prepare, recover, rollback, rollback, setApplicationContext, setBulkLoader, setCacheEnabled, setCommitLockTimeout, setContentIndexingEnabled, setDefaultMLIndexAnalysisMode, setDefaultMLSearchAnalysisMode, setFairLocking, setIndexerBatchSize, setIndexerMaxFieldLength, setIndexRootLocation, setLockDirectory, setLockPollInterval, setMaxAtomicTransformationTime, setMaxDocIdCacheSize, setMaxDocsForInMemoryIndex, setMaxDocsForInMemoryMerge, setMaxDocumentCacheSize, setMaxIsCategoryCacheSize, setMaxLinkAspectCacheSize, setMaxParentCacheSize, setMaxPathCacheSize, setMaxRamInMbForInMemoryIndex, setMaxRamInMbForInMemoryMerge, setMaxTypeCacheSize, setMergerMaxBufferedDocs, setMergerMaxMergeDocs, setMergerMergeFactor, setMergerRamBufferSizeMb, setMergerTargetIndexCount, setMergerTargetOverlayCount, setMergerTargetOverlaysBlockingFactor, setPostSortDateTime, setQueryMaxClauses, setQueryRegister, setTenantService, setTermIndexInterval, setThreadPoolExecutor, setTransactionTimeout, setUseNioMemoryMapping, setWriteLockTimeout, setWriterMaxBufferedDocs, setWriterMaxMergeDocs, setWriterMergeFactor, setWriterRamBufferSizeMb, start
 
Methods inherited from class org.alfresco.repo.search.impl.lucene.AbstractIndexerAndSearcher
getQueryLanguages, registerQueryLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.repo.search.IndexerAndSearcher
getQueryLanguages, registerQueryLanguage
 

Field Detail

transactionService

protected TransactionService transactionService
Constructor Detail

AVMLuceneIndexerAndSearcherFactory

public AVMLuceneIndexerAndSearcherFactory()
Method Detail

setDictionaryService

public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service


setNameSpaceService

public void setNameSpaceService(org.alfresco.service.namespace.NamespaceService nameSpaceService)
Set the name space service


setContentService

public void setContentService(ContentService contentService)
Set the content service


setTransactionService

public void setTransactionService(TransactionService transactionService)

setAvmService

public void setAvmService(AVMService avmService)
Set the AVM service


setAvmSyncService

public void setAvmSyncService(AVMSyncService avmSyncService)
Set the AVM sync service


setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service


setContentStore

public void setContentStore(ContentStore contentStore)
Set the content service


setAvmSnapShotTriggeredIndexingMethodInterceptor

public void setAvmSnapShotTriggeredIndexingMethodInterceptor(AVMSnapShotTriggeredIndexingMethodInterceptor avmSnapShotTriggeredIndexingMethodInterceptor)
Parameters:
avmSnapShotTriggeredIndexingMethodInterceptor - the avmSnapShotTriggeredIndexingMethodInterceptor to set

createIndexer

protected LuceneIndexer createIndexer(org.alfresco.service.cmr.repository.StoreRef storeRef,
                                      java.lang.String deltaId)
Description copied from class: AbstractLuceneIndexerAndSearcherFactory
Encapsulate creating an indexer

Specified by:
createIndexer in class AbstractLuceneIndexerAndSearcherFactory
Returns:
- the indexer made by the concrete implemntation

getAllStores

protected java.util.List getAllStores()
Specified by:
getAllStores in class AbstractLuceneIndexerAndSearcherFactory

getSearcher

protected LuceneSearcher getSearcher(org.alfresco.service.cmr.repository.StoreRef storeRef,
                                     LuceneIndexer indexer)
                              throws SearcherException
Description copied from class: AbstractLuceneIndexerAndSearcherFactory
Get a searcher over the index and the current delta

Specified by:
getSearcher in class AbstractLuceneIndexerAndSearcherFactory
Returns:
- the searcher made by the concrete implementation.
Throws:
SearcherException

getNodeSearcher

protected org.alfresco.service.cmr.search.SearchService getNodeSearcher()
                                                                 throws SearcherException
Description copied from class: AbstractLuceneIndexerAndSearcherFactory
Get node-based searcher (for "selectNodes / selectProperties")

Specified by:
getNodeSearcher in class AbstractLuceneIndexerAndSearcherFactory
Throws:
SearcherException

setFullTextSearchIndexer

public void setFullTextSearchIndexer(FullTextSearchIndexer fullTextSearchIndexer)
Register the full text searcher (done by the seracher bean to break cyclic bean defs)

Specified by:
setFullTextSearchIndexer in interface SupportsBackgroundIndexing


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.