See: Description
| Package | Description |
|---|---|
| com.norconex.jef4 |
Generic classes not belonging to any specific package.
|
| com.norconex.jef4.exec |
Utility classes related to process/code execution.
|
| com.norconex.jef4.job |
Job-related classes.
|
| com.norconex.jef4.job.group |
Classes related to the grouping of jobs.
|
| com.norconex.jef4.log |
Classes related to logging.
|
| com.norconex.jef4.mail |
Optional package containing convenient classes for sending simple
email notifications.
|
| com.norconex.jef4.status |
Job-status related classes.
|
| com.norconex.jef4.suite |
Classes related to a job suite.
|
This library constitutes the Norconex Java Execution Framework.
Simple steps to get started:
com.norconex.jef.job.IJob) to accomplish
the required tasks.com.norconex.jef.group.AsyncJobGroup and
com.norconex.jef.group.SyncJobGroup.com.norconex.jef.suite.JobSuite)
with your created jobs (it is recommended you use
com.norconex.jef.suite.IJobSuiteFactory for the suite creation
process).com.norconex.jef.suite.JobSuite#execute().The creation of a job suite may look like this:
public class MyJobSuiteFactory implements IJobSuiteFactory {
public JobSuite createJobSuite() {
IJob rootJob = new AsyncJobGroup("asyncGroupSample", new IJob[] {
new MyJobA(),
new SyncJobGroup("syncGroupSample", new IJob[] {
new MyJobB(),
new MyJobC()
}),
new MyJobD(),
new MyJobE()),
});
JobSuite suite = new JobSuite(rootJob);
// add any listners/handlers to the suite
return suite;
}
}
In the end, launching a job suite may look like this:
IJobSuiteFactory factory = new MyJobSuiteFactory();
JobSuite suite = factory.createJobSuite();
suite.execute();
Copyright © 2007–2021 Norconex Inc.. All rights reserved.