|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xpn.xwiki.util.AbstractXWikiRunnable
com.xpn.xwiki.plugin.lucene.IndexUpdater
public class IndexUpdater
| Method Summary | |
|---|---|
void |
addAttachment(com.xpn.xwiki.doc.XWikiDocument document,
String attachmentName,
com.xpn.xwiki.XWikiContext context,
boolean deleted)
|
void |
addWiki(String wikiId,
boolean deleted)
|
void |
cleanIndex()
|
void |
doExit()
|
org.apache.lucene.store.Directory |
getDirectory()
Return a reference to the directory that this updater is currently working with. |
List<org.xwiki.observation.event.Event> |
getEvents()
|
long |
getLuceneDocCount()
|
int |
getMaxQueueSize()
|
String |
getName()
|
long |
getQueueSize()
|
void |
onEvent(org.xwiki.observation.event.Event event,
Object source,
Object data)
|
protected org.apache.lucene.index.IndexWriter |
openWriter(boolean create)
|
void |
queueAttachment(com.xpn.xwiki.doc.XWikiAttachment attachment,
com.xpn.xwiki.XWikiContext context,
boolean deleted)
|
int |
queueAttachments(com.xpn.xwiki.doc.XWikiDocument document,
com.xpn.xwiki.XWikiContext context)
|
void |
queueDocument(com.xpn.xwiki.doc.XWikiDocument document,
com.xpn.xwiki.XWikiContext context,
boolean deleted)
|
protected void |
runInternal()
Main loop. |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
|
| Methods inherited from class com.xpn.xwiki.util.AbstractXWikiRunnable |
|---|
cleanupExecutionContext, initExecutionContext, run |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void doExit()
public org.apache.lucene.store.Directory getDirectory()
protected void runInternal()
runInternal in class com.xpn.xwiki.util.AbstractXWikiRunnableRunnable.run()
protected org.apache.lucene.index.IndexWriter openWriter(boolean create)
throws IOException
IOExceptionpublic void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
analyzer - The analyzer to set.public void cleanIndex()
public void queueDocument(com.xpn.xwiki.doc.XWikiDocument document,
com.xpn.xwiki.XWikiContext context,
boolean deleted)
public void queueAttachment(com.xpn.xwiki.doc.XWikiAttachment attachment,
com.xpn.xwiki.XWikiContext context,
boolean deleted)
public void addAttachment(com.xpn.xwiki.doc.XWikiDocument document,
String attachmentName,
com.xpn.xwiki.XWikiContext context,
boolean deleted)
public void addWiki(String wikiId,
boolean deleted)
public int queueAttachments(com.xpn.xwiki.doc.XWikiDocument document,
com.xpn.xwiki.XWikiContext context)
public String getName()
getName in interface org.xwiki.observation.EventListenerEventListener.getName()public List<org.xwiki.observation.event.Event> getEvents()
getEvents in interface org.xwiki.observation.EventListenerEventListener.getEvents()
public void onEvent(org.xwiki.observation.event.Event event,
Object source,
Object data)
onEvent in interface org.xwiki.observation.EventListenerEventListener.onEvent(org.xwiki.observation.event.Event, java.lang.Object,
java.lang.Object)public long getQueueSize()
public long getLuceneDocCount()
public int getMaxQueueSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||