com.norconex.jef
Class AsyncJobGroup
java.lang.Object
com.norconex.jef.AbstractJobGroup
com.norconex.jef.AsyncJobGroup
- All Implemented Interfaces:
- IJob, IJobGroup
- Direct Known Subclasses:
- AsyncLimitedJobGroup
public class AsyncJobGroup
- extends AbstractJobGroup
Job responsible for running a group of jobs asynchronously. All jobs
are started at the same time, in different threads. 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 not stop the other jobs
in the group from running. On the other hand, one or more exception will
result in this group to fail.
- Author:
- Pascal Essiembre
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncJobGroup
public AsyncJobGroup(String id,
IJob... jobs)
- Constructor.
- Parameters:
id
- unique identifier for this job groupjobs
- jobs making up this group
AsyncJobGroup
public AsyncJobGroup(String id,
String description,
IJob... jobs)
- Constructor.
- Parameters:
id
- unique identifier for this job groupjobs
- jobs making up this groupdescription
- job description
execute
public 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 progresssuite
- job suite this job is part of
Copyright © 2007-2013 Norconex Inc.. All Rights Reserved.