|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.scheduler.Job
Wrapper class that represents a recurring, scheduled background "Job". Contains a JobSchedule and a JobProcess object. The Scheduler regularly polls the JobSchedule class to determine if the Job is ready to be run. If so, the Job object is added to the job processing queue. When a JobDispatcher thread picks up the Job, it requests the JobProcess object to execute its process.
XML Configuration Template:
<Job jobId="[blank or assigned jobId]" >
<JobSchedule schedulerClass="[implementation of JobSchedule]"
status="[blank or current schedule Status]" >
<!-- JobSchedule implementation parameters here... -->
</JobSchedule>
<JobProcess processClass="[implementation of IJobProcess]" >
<!-- initialization parameters for the IJobProcess object -->
</JobProcess>
</Job>
| Constructor Summary | |
Job()
|
|
Job(java.lang.Object jobSchedule,
IJobProcess jobProcess)
|
|
| Method Summary | |
org.w3c.dom.Element |
getConfigurationElement()
|
java.lang.String |
getConfigurationXML()
|
java.lang.String |
getJobId()
|
RaritanPageContext |
getJobParameters()
|
IJobProcess |
getJobProcess()
called by Scheduler when job is ready to be done... |
int |
getJobStatus()
returns an integer code for the current Job Status: UNSCHEDULED = 0 SCHEDULED = 1 STARTED = 2 COMPLETED = 3 REMOTED = 4 |
JobSchedule |
getSchedule()
Called by Scheduler to get the job's timing info... |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
jobCompleted(java.lang.Object processOb,
java.util.Date at,
int status)
|
void |
jobScheduled(java.util.Date at)
|
void |
jobStarting(java.util.Date at)
|
void |
setJobParameters(RaritanPageContext rpc)
|
void |
setJobProcess(IJobProcess jobProcess)
|
void |
setSchedule(JobSchedule jSchedule)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Job()
public Job(java.lang.Object jobSchedule,
IJobProcess jobProcess)
| Method Detail |
public void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurablepublic void setSchedule(JobSchedule jSchedule)
public JobSchedule getSchedule()
public void setJobProcess(IJobProcess jobProcess)
public IJobProcess getJobProcess()
public void setJobParameters(RaritanPageContext rpc)
public RaritanPageContext getJobParameters()
public void jobStarting(java.util.Date at)
public void jobCompleted(java.lang.Object processOb,
java.util.Date at,
int status)
public void jobScheduled(java.util.Date at)
public int getJobStatus()
public java.lang.String getConfigurationXML()
public org.w3c.dom.Element getConfigurationElement()
public java.lang.String getJobId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||