|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.search.service.indexer.OlatFullIndexer
public class OlatFullIndexer
Controls the hole generation of a full-index. Runs in own thread.
| Constructor Summary | |
|---|---|
OlatFullIndexer(java.lang.String tempIndexPath,
Index index,
long restartInterval,
long indexInterval)
|
|
| Method Summary | |
|---|---|
void |
addDocument(org.apache.lucene.document.Document document)
Callback to addDocument to indexWriter. |
java.util.List<org.apache.lucene.document.Document> |
getDocumentQueue()
|
long |
getIndexInterval()
|
FullIndexerStatus |
getStatus()
|
boolean |
isInterupted()
Check if the indexing process is interrupted. |
void |
run()
|
void |
setIndexInterval(long indexInterval)
|
void |
startIndexing()
Start full indexer thread. |
void |
stopIndexing()
Stop full indexer thread asynchron. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OlatFullIndexer(java.lang.String tempIndexPath,
Index index,
long restartInterval,
long indexInterval)
tempIndexPath - Absolute file path to temporary index directory.index - Reference to index object.restartInterval - Restart interval in milliseconds.indexInterval - Sleep time in milliseconds between adding documents.| Method Detail |
|---|
public void startIndexing()
public void stopIndexing()
public void run()
run in interface java.lang.RunnableRunnable.run()
public void addDocument(org.apache.lucene.document.Document document)
throws java.io.IOException,
java.lang.InterruptedException
document -
java.io.IOException
java.lang.InterruptedExceptionpublic FullIndexerStatus getStatus()
public long getIndexInterval()
public void setIndexInterval(long indexInterval)
indexInterval - The indexInterval to set.public java.util.List<org.apache.lucene.document.Document> getDocumentQueue()
public boolean isInterupted()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||