|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJob
A job to be executed by the Job Execution Framework. Implementors are responsible for reporting job progress and errors in a uniform way. Great care should be taken to make every jobs recoverable.
Jobs are usually assembled together to form a JobSuite
.
Progress tracking, error handling, logging, etc., are all handled by job
suites and implementors do not have to worry about these concerns when
creating jobs.
To ensure the best integration possible with the framework, implementors are invited to adhere to the following practices:
JobProgress
;
JobException
instance;
Method Summary | |
---|---|
IJobContext |
createJobContext()
Contextual information about the job to run. |
void |
execute(JobProgress progress,
JobSuite suite)
Executes this job. |
String |
getId()
Gets the job unique identifier. |
void |
stop(IJobStatus progress,
JobSuite suite)
Stops this job. |
Method Detail |
---|
IJobContext createJobContext()
null
.
String getId()
void execute(JobProgress progress, JobSuite suite)
JobProgress
.
progress
- current job progresssuite
- job suite this job is part ofvoid stop(IJobStatus progress, JobSuite suite)
progress
- current job progresssuite
- job suite this job is part of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |