com.raritantechnologies.searchApp.scheduler
Class JobStatus

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

public class JobStatus
extends java.lang.Object
implements IJobProcessListener

Tracks Job progress from before scheduling to completion.


Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from interface com.raritantechnologies.searchApp.scheduler.IJobProcessListener
COMPLETED, COMPLETED_NORMALLY, SCHEDULED, STARTED, UNSCHEDULED
 
Constructor Summary
JobStatus()
           
 
Method Summary
 int getCompletedStatus()
           
 java.util.Date getJobCompletedTime()
          Returns time at which the Job process executeJob( ) method completed.
 java.util.Date getJobScheduledTime()
          Returns time at which the Scheduler added the Job to the queue.
 java.util.Date getJobStartTime()
          Returns time at which the JobDispatcher initiated the job process.
 int getJobStatus()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void jobCompleted(java.lang.Object process, java.util.Date at, int status)
          set status = 0 for normal completion.
 void jobScheduled(java.util.Date at)
           
 void jobStarting(java.util.Date at)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobStatus

public JobStatus()
Method Detail

jobScheduled

public void jobScheduled(java.util.Date at)
Specified by:
jobScheduled in interface IJobProcessListener

jobStarting

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

jobCompleted

public void jobCompleted(java.lang.Object process,
                         java.util.Date at,
                         int status)
set status = 0 for normal completion.

Specified by:
jobCompleted in interface IJobProcessListener

getJobStatus

public int getJobStatus()
Specified by:
getJobStatus in interface IJobProcessListener

getCompletedStatus

public int getCompletedStatus()
Specified by:
getCompletedStatus in interface IJobProcessListener

getJobScheduledTime

public java.util.Date getJobScheduledTime()
Description copied from interface: IJobProcessListener
Returns time at which the Scheduler added the Job to the queue.

Specified by:
getJobScheduledTime in interface IJobProcessListener

getJobStartTime

public java.util.Date getJobStartTime()
Description copied from interface: IJobProcessListener
Returns time at which the JobDispatcher initiated the job process.

Specified by:
getJobStartTime in interface IJobProcessListener

getJobCompletedTime

public java.util.Date getJobCompletedTime()
Description copied from interface: IJobProcessListener
Returns time at which the Job process executeJob( ) method completed.

Specified by:
getJobCompletedTime in interface IJobProcessListener

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 IJobProcessListener