org.apache.manifoldcf.crawler.system
Class WorkerResetManager

java.lang.Object
  extended by org.apache.manifoldcf.crawler.system.ResetManager
      extended by org.apache.manifoldcf.crawler.system.WorkerResetManager

public class WorkerResetManager
extends ResetManager

Class which handles reset for worker thread pool. The reset action here is to mark all active documents as being ready for queuing.


Field Summary
static java.lang.String _rcsid
           
protected  DocumentQueue dq
          The document queue
protected  DocumentCleanupQueue eq
          The expiration queue
 
Fields inherited from class org.apache.manifoldcf.crawler.system.ResetManager
involvedThreadCount, resetRequired, waitingThreads
 
Constructor Summary
WorkerResetManager(DocumentQueue dq, DocumentCleanupQueue eq)
          Constructor.
 
Method Summary
protected  void performResetLogic(IThreadContext tc)
          Reset
 
Methods inherited from class org.apache.manifoldcf.crawler.system.ResetManager
noteEvent, registerMe, waitForReset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values

dq

protected DocumentQueue dq
The document queue


eq

protected DocumentCleanupQueue eq
The expiration queue

Constructor Detail

WorkerResetManager

public WorkerResetManager(DocumentQueue dq,
                          DocumentCleanupQueue eq)
Constructor.

Method Detail

performResetLogic

protected void performResetLogic(IThreadContext tc)
                          throws ManifoldCFException
Reset

Specified by:
performResetLogic in class ResetManager
Throws:
ManifoldCFException