|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.jef.JobRunner
public class JobRunner
Responsible for managing the execution of a suite and its related jobs.
Constructor Summary | |
---|---|
JobRunner()
|
Method Summary | |
---|---|
static String |
getCurrentJobId()
Gets the job identifier representing the currently running job for the current thread. |
boolean |
runSuite(JobSuite suite)
Runs a job suite. |
boolean |
runSuite(JobSuite suite,
boolean resumeIfIncomplete)
Runs a job suite. |
static void |
setCurrentJobId(String jobId)
Sets a job identifier as the currently running job for the the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobRunner()
Method Detail |
---|
public final boolean runSuite(JobSuite suite)
runSuite(JobSuite, boolean
variant for resuming jobs.
suite
- the job suite to run
true
if the suite ran successfullypublic final boolean runSuite(JobSuite suite, boolean resumeIfIncomplete)
suite
- the job suite to runresumeIfIncomplete
- if true
,
stopped and aborted jobs jobs will be resumed
true
if the suite ran successfullypublic static void setCurrentJobId(String jobId)
jobId
- job identifierpublic static String getCurrentJobId()
null
if no job is currently
associated with the current thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |