org.opencms.search
Class CmsSearchManager.CmsSearchOfflineIndexWorkThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.opencms.search.CmsSearchManager.CmsSearchOfflineIndexWorkThread
All Implemented Interfaces:
Runnable
Enclosing class:
CmsSearchManager

protected class CmsSearchManager.CmsSearchOfflineIndexWorkThread
extends Thread

An offline index worker Thread runs each time for every offline index update action.

This was decoupled from the main CmsSearchManager.CmsSearchOfflineIndexThread in order to avoid problems if a single operation "hangs" the Tread.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected CmsSearchManager.CmsSearchOfflineIndexWorkThread(I_CmsReport report, List<CmsPublishedResource> resourcesToIndex)
          Updates the offline search indexes for the given list of resources.
 
Method Summary
 void run()
           
 
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, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmsSearchManager.CmsSearchOfflineIndexWorkThread

protected CmsSearchManager.CmsSearchOfflineIndexWorkThread(I_CmsReport report,
                                                           List<CmsPublishedResource> resourcesToIndex)
Updates the offline search indexes for the given list of resources.

Parameters:
report - the report to write the index information to
resourcesToIndex - the list of CmsPublishedResource objects to index
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run()