|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.jef.AbstractJobGroup
public abstract class AbstractJobGroup
Base implementation for job groups. The group progress is an average of all job progress it contains, on a factor of 100.
Constructor Summary | |
---|---|
AbstractJobGroup(String id,
IJob... jobs)
Constructor. |
|
AbstractJobGroup(String id,
String description,
IJob... jobs)
Constructor. |
Method Summary | |
---|---|
IJobContext |
createJobContext()
Contextual information about the job to run. |
String |
getId()
Gets the job unique identifier. |
IJob[] |
getJobs()
Gets all jobs part of this group. |
protected void |
registerGroupProgressMonitoring(JobProgress groupProgress,
JobSuite suite)
Registers a monitoring process so that individual job progress part of this group gets reflected on the group overall progress. |
void |
stop(IJobStatus progress,
JobSuite suite)
Stops this job. |
protected void |
unregisterGroupProgressMonitoring(JobSuite suite)
Unregisters the monitoring process associated with the given job suite. |
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 |
---|
execute |
Constructor Detail |
---|
public AbstractJobGroup(String id, IJob... jobs)
id
- job unique identifierjobs
- jobs to be run by the grouppublic AbstractJobGroup(String id, String description, IJob... jobs)
id
- job unique identifierjobs
- jobs to be run by the groupdescription
- job descriptionMethod Detail |
---|
public final IJob[] getJobs()
IJobGroup
getJobs
in interface IJobGroup
public final String getId()
IJob
getId
in interface IJob
public IJobContext createJobContext()
IJob
null
.
createJobContext
in interface IJob
protected final void registerGroupProgressMonitoring(JobProgress groupProgress, JobSuite suite)
groupProgress
- job progress for this groupsuite
- suite for which we are tracking job progressprotected final void unregisterGroupProgressMonitoring(JobSuite suite)
suite
- suite on which we were monitoring job progresspublic void stop(IJobStatus progress, JobSuite suite)
IJob
stop
in interface IJob
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 |