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;
Modifier and Type | Method and Description |
---|---|
void |
execute(JobStatusUpdater statusUpdater,
JobSuite suite)
Executes this job.
|
String |
getId()
Gets the job unique identifier.
|
void |
stop(IJobStatus status,
JobSuite suite)
Stops this job.
|
String getId()
void execute(JobStatusUpdater statusUpdater, JobSuite suite)
JobProgress
.statusUpdater
- status updatersuite
- job suite this job is part ofvoid stop(IJobStatus status, JobSuite suite)
status
- current job statussuite
- job suite this job is part ofCopyright © 2007–2021 Norconex Inc.. All rights reserved.