public class FullTextSearchIndexerImpl extends java.lang.Object implements FTSIndexerAware, FullTextSearchIndexer, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
FullTextSearchIndexerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
index()
Do a chunk of outstanding indexing work
|
void |
indexCompleted(org.alfresco.service.cmr.repository.StoreRef storeRef,
int remaining,
java.lang.Throwable t)
Call back used by the background indexer
|
static void |
main(java.lang.String[] args) |
void |
pause()
Pause indexing 9no back ground indexing until a resume is called)
|
void |
requiresIndex(org.alfresco.service.cmr.repository.StoreRef storeRef)
Mark a store as dirty, requiring a background index update to fix it up.
|
void |
resume()
Resume after a pause
|
void |
setBatchSize(int batchSzie)
The maximum maximum batch size
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory) |
void |
setTransactionService(TransactionService transactionService) |
public void requiresIndex(org.alfresco.service.cmr.repository.StoreRef storeRef)
FullTextSearchIndexerrequiresIndex in interface FullTextSearchIndexerpublic void indexCompleted(org.alfresco.service.cmr.repository.StoreRef storeRef,
int remaining,
java.lang.Throwable t)
FTSIndexerAwareindexCompleted in interface FTSIndexerAwareindexCompleted in interface FullTextSearchIndexerpublic void pause()
throws java.lang.InterruptedException
FullTextSearchIndexerpause in interface FullTextSearchIndexerjava.lang.InterruptedExceptionpublic void resume()
throws java.lang.InterruptedException
FullTextSearchIndexerresume in interface FullTextSearchIndexerjava.lang.InterruptedExceptionpublic void index()
FullTextSearchIndexerindex in interface FullTextSearchIndexerpublic void setIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory)
indexerAndSearcherFactory - public void setTransactionService(TransactionService transactionService)
transactionService - public static void main(java.lang.String[] args)
throws java.lang.InterruptedException
args - java.lang.InterruptedExceptionpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setBatchSize(int batchSzie)
batchSize - the batchSize to setpublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.