protected class CmsSearchManager.CmsSearchOfflineIndexThread extends java.lang.Thread
Modifier | Constructor and Description |
---|---|
protected |
CmsSearchOfflineIndexThread(CmsSearchManager.CmsSearchOfflineHandler handler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
protected CmsSearchOfflineIndexThread(CmsSearchManager.CmsSearchOfflineHandler handler)
handler
- the offline index event handlerpublic CmsWaitHandle getWaitHandle()
public void interrupt()
interrupt
in class java.lang.Thread
Thread.interrupt()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Thread.run()
public void start()
start
in class java.lang.Thread
Thread.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