com.norconex.jef
Class SyncJobGroup

java.lang.Object
  extended by com.norconex.jef.AbstractJobGroup
      extended by com.norconex.jef.SyncJobGroup
All Implemented Interfaces:
IJob, IJobGroup

public class SyncJobGroup
extends AbstractJobGroup

Job responsible for running a group of jobs synchronously. Jobs are executed in the order specified by the IJob[] array. The progress of this group reflects the average progress of all its jobs. This job group is considered completed and will only return when all its jobs are done executing. An exception in one job will stop the other jobs in the group from executing. Such an exception will result in this group to fail.

Author:
Pascal Essiembre

Constructor Summary
SyncJobGroup(String id, IJob... jobs)
           
SyncJobGroup(String id, String description, IJob... jobs)
           
 
Method Summary
 void execute(JobProgress progress, JobSuite suite)
          Executes this job.
 
Methods inherited from class com.norconex.jef.AbstractJobGroup
createJobContext, getId, getJobs, registerGroupProgressMonitoring, stop, unregisterGroupProgressMonitoring
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncJobGroup

public SyncJobGroup(String id,
                    IJob... jobs)

SyncJobGroup

public SyncJobGroup(String id,
                    String description,
                    IJob... jobs)
Method Detail

execute

public final void execute(JobProgress progress,
                          JobSuite suite)
Description copied from interface: IJob
Executes this job. Implementors are responsible for updating execution progress on the given JobProgress.

Parameters:
progress - current job progress
suite - job suite this job is part of


Copyright © 2007-2013 Norconex Inc.. All Rights Reserved.