public class FullTextSearchIndexerImpl extends 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,
Throwable t)
Call back used by the background indexer
|
static void |
main(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,
Throwable t)
FTSIndexerAwareindexCompleted in interface FTSIndexerAwareindexCompleted in interface FullTextSearchIndexerpublic void pause()
throws InterruptedException
FullTextSearchIndexerpause in interface FullTextSearchIndexerInterruptedExceptionpublic void resume()
throws InterruptedException
FullTextSearchIndexerresume in interface FullTextSearchIndexerInterruptedExceptionpublic void index()
FullTextSearchIndexerindex in interface FullTextSearchIndexerpublic void setIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory)
indexerAndSearcherFactory - public void setTransactionService(TransactionService transactionService)
transactionService - public static void main(String[] args) throws InterruptedException
args - 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 setCopyright © 2005–2014 Alfresco Software. All rights reserved.