|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.jef.AbstractResumableJob
public abstract class AbstractResumableJob
Convenience class separating normal execution from recovery. If the job
is starting clean, the startExecution
method will get invoked.
Else, provided that there is already progress on a starting job
and the job is incomplete (i.e. failure), the resumeExecution
method will be invoked.
Typical usage of this class might be when extra (or different) steps
need to be undertaken when resuming a job. Otherwise, there may be no
benefits to using this class over a straight implementation of
IJob
.
Constructor Summary | |
---|---|
AbstractResumableJob()
Constructor. |
Method Summary | |
---|---|
void |
execute(JobProgress progress,
JobSuite suite)
Executes this job. |
protected abstract void |
resumeExecution(JobProgress progress,
JobSuite suite)
Resumes the execution of a job. |
protected abstract void |
startExecution(JobProgress progress,
JobSuite suite)
Starts the execution of a job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.norconex.jef.IJob |
---|
createJobContext, getId, stop |
Constructor Detail |
---|
public AbstractResumableJob()
Method Detail |
---|
public final void execute(JobProgress progress, JobSuite suite)
IJob
JobProgress
.
execute
in interface IJob
progress
- current job progresssuite
- job suite this job is part ofprotected abstract void startExecution(JobProgress progress, JobSuite suite)
progress
- job progresssuite
- job suiteprotected abstract void resumeExecution(JobProgress progress, JobSuite suite)
progress
- job progresssuite
- job suite
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |