|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BackendQueueProcessor
Interface for different types of queue processors. Implementations need a no-arg constructor.
Method Summary | |
---|---|
void |
applyStreamWork(LuceneWork singleOperation,
IndexingMonitor monitor)
Applies a single operation on the index, and different operations can be applied in parallel, even in parallel to a workList instance being processed by applyWork(List, IndexingMonitor) |
void |
applyWork(List<LuceneWork> workList,
IndexingMonitor monitor)
Applies a list of operations to the index. |
void |
close()
Used to shutdown and eventually release resources. |
Lock |
getExclusiveWriteLock()
|
void |
indexMappingChanged()
Used to notify the backend that the number or type of indexed entities being indexed in this backend changed. |
void |
initialize(Properties props,
WorkerBuildContext context,
DirectoryBasedIndexManager indexManager)
Used at startup, called once as first method. |
Method Detail |
---|
void initialize(Properties props, WorkerBuildContext context, DirectoryBasedIndexManager indexManager)
props
- all configuration propertiescontext
- context giving access to required meta dataindexManager
- the index it is related to.void close()
void applyWork(List<LuceneWork> workList, IndexingMonitor monitor)
workList
- list of Lucene work instance which need to be applied to the indexvoid applyStreamWork(LuceneWork singleOperation, IndexingMonitor monitor)
applyWork(List, IndexingMonitor)
singleOperation
- single Lucene work instance to be applied to the indexLock getExclusiveWriteLock()
void indexMappingChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |