com.raritantechnologies.searchApp.scheduler
Class SimpleJobDispatcher

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.raritantechnologies.utils.queue.QueueEventDispatcher
          extended bycom.raritantechnologies.searchApp.scheduler.SimpleJobDispatcher
All Implemented Interfaces:
java.lang.Runnable

public class SimpleJobDispatcher
extends QueueEventDispatcher

Does not use a JobSchedule - simply executes the Job. Used when there is a need for a single Job Queue that is to be executed once and only once.


Field Summary
 
Fields inherited from class com.raritantechnologies.utils.queue.QueueEventDispatcher
manager
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SimpleJobDispatcher(QueueManager manager)
           
SimpleJobDispatcher(QueueManager manager, java.lang.String[] args)
           
 
Method Summary
protected  void dispatch(java.lang.Object theEvent)
           
 
Methods inherited from class com.raritantechnologies.utils.queue.QueueEventDispatcher
run, start, stopIt
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

SimpleJobDispatcher

public SimpleJobDispatcher(QueueManager manager)

SimpleJobDispatcher

public SimpleJobDispatcher(QueueManager manager,
                           java.lang.String[] args)
Method Detail

dispatch

protected void dispatch(java.lang.Object theEvent)
Specified by:
dispatch in class QueueEventDispatcher