com.raritantechnologies.searchApp.scheduler
Class SingleJobSchedule

java.lang.Object
  extended bycom.raritantechnologies.searchApp.scheduler.JobSchedule
      extended bycom.raritantechnologies.searchApp.scheduler.SingleJobSchedule
All Implemented Interfaces:
IConfigurable, IJobProcessListener

public class SingleJobSchedule
extends JobSchedule

Schedules a single job that happens once and only once.

XML Configuration Template:
 <JobSchedule schedulerClass="com.raritantechnologies.searchApp.scheduled.SingleJobSchedule"
                 dateFormat="[ date format e.g. 'MM/DD/YY' ]"
                 notBefore="[ date that should run after ]"
                 notAfter="[ date that should run before ]" />
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.scheduler.JobSchedule
COMPLETED, COMPLETED_NORMALLY, completedJobStatus, completedTime, jobStatus, REMOTED, SCHEDULED, scheduledTime, STARTED, startedTime, UNSCHEDULED
 
Constructor Summary
SingleJobSchedule()
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void jobStarting(java.util.Date at)
           
 boolean shouldRun(java.util.Date now)
           
 
Methods inherited from class com.raritantechnologies.searchApp.scheduler.JobSchedule
addListener, didRun, getCompletedJobStatus, getCompletedStatus, getCompletedTime, getJobCompletedTime, getJobScheduledTime, getJobStartTime, getJobStatus, getScheduledTime, getStartedTime, jobCompleted, jobScheduled, removeListener, setCompletedJobStatus, setCompletedTime, setJobStatus, setScheduledTime, setStartedTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleJobSchedule

public SingleJobSchedule()
Method Detail

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable
Overrides:
initialize in class JobSchedule

shouldRun

public boolean shouldRun(java.util.Date now)
Overrides:
shouldRun in class JobSchedule

jobStarting

public void jobStarting(java.util.Date at)
Specified by:
jobStarting in interface IJobProcessListener
Overrides:
jobStarting in class JobSchedule