|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Thread
org.opencms.search.CmsSearchManager.CmsSearchOfflineIndexThread
protected class CmsSearchManager.CmsSearchOfflineIndexThread
The offline indexer thread runs periodically and indexes all resources added by the event handler.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
protected |
CmsSearchManager.CmsSearchOfflineIndexThread(CmsSearchManager.CmsSearchOfflineHandler handler)
Constructor. |
| Method Summary | |
|---|---|
protected java.util.List<CmsPublishedResource> |
getResourcesToIndex()
Obtains the list of resource to update in the offline index, then optimizes the list by removing duplicate entries. |
CmsWaitHandle |
getWaitHandle()
Gets the wait handle used for signalling when the worker thread has finished. |
void |
interrupt()
|
void |
run()
|
protected void |
shutDown()
Shuts down this offline index thread. |
void |
start()
|
protected void |
startOfflineUpdateThread(I_CmsReport report,
java.util.List<CmsPublishedResource> resourcesToIndex)
Updates the offline search indexes for the given list of resources. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected CmsSearchManager.CmsSearchOfflineIndexThread(CmsSearchManager.CmsSearchOfflineHandler handler)
handler - the offline index event handler| Method Detail |
|---|
public CmsWaitHandle getWaitHandle()
public void interrupt()
interrupt in class java.lang.ThreadThread.interrupt()public void run()
run in interface java.lang.Runnablerun in class java.lang.ThreadThread.run()public void start()
start in class java.lang.ThreadThread.start()protected java.util.List<CmsPublishedResource> getResourcesToIndex()
protected void shutDown()
protected void startOfflineUpdateThread(I_CmsReport report,
java.util.List<CmsPublishedResource> resourcesToIndex)
report - the report to write the index information toresourcesToIndex - the list of CmsPublishedResource objects to index
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||