com.raritantechnologies.searchApp.scheduler
Class JobDispatcher

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

public class JobDispatcher
extends QueueEventDispatcher

Job Dispatcher for recurring Jobs. Extends QueueEventDispatcher which polls the QueueManager for available jobs to process. When a new job is available the dispatch( ) method is called. Runs in a separate thread from the main process.

dispatch( ) should get a Job object. It then gets the IJobProcess and send the execute command. It then updates the JobSchedule that the job has been successfully executed.


Developed by Raritan Technologies .

Author:
Ted Sullivan

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
JobDispatcher(QueueManager manager)
           
JobDispatcher(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

JobDispatcher

public JobDispatcher(QueueManager manager)

JobDispatcher

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

dispatch

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