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)
FullTextSearchIndexer
requiresIndex
in interface FullTextSearchIndexer
storeRef
- StoreRefpublic void indexCompleted(org.alfresco.service.cmr.repository.StoreRef storeRef, int remaining, Throwable t)
FTSIndexerAware
indexCompleted
in interface FTSIndexerAware
indexCompleted
in interface FullTextSearchIndexer
storeRef
- StoreRefremaining
- intt
- Throwablepublic void pause() throws InterruptedException
FullTextSearchIndexer
pause
in interface FullTextSearchIndexer
InterruptedException
public void resume() throws InterruptedException
FullTextSearchIndexer
resume
in interface FullTextSearchIndexer
InterruptedException
public void index()
FullTextSearchIndexer
index
in interface FullTextSearchIndexer
public void setIndexerAndSearcherFactory(IndexerAndSearcher indexerAndSearcherFactory)
indexerAndSearcherFactory
- IndexerAndSearcherpublic void setTransactionService(TransactionService transactionService)
transactionService
- TransactionServicepublic static void main(String[] args) throws InterruptedException
args
- String[]InterruptedException
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void setBatchSize(int batchSzie)
batchSzie
- the batchSize to setCopyright © 2005–2017 Alfresco Software. All rights reserved.