org.opencms.search
Class CmsSearchManager.CmsSearchOfflineIndexThread

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

protected class CmsSearchManager.CmsSearchOfflineIndexThread
extends java.lang.Thread

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.
 void run()
           
protected  void shutDown()
          Shuts down this offline index thread.
 void start()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmsSearchManager.CmsSearchOfflineIndexThread

protected CmsSearchManager.CmsSearchOfflineIndexThread(CmsSearchManager.CmsSearchOfflineHandler handler)
Constructor.

Parameters:
handler - the offline index event handler
Method Detail

run

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

start

public void start()
Overrides:
start in class java.lang.Thread
See Also:
Thread.start()

getResourcesToIndex

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.

Returns:
the list of resource to update in the offline index

shutDown

protected void shutDown()
Shuts down this offline index thread.