Skip navigation links

Norconex JEF 4.1.3 API

This library constitutes the Norconex Java Execution Framework.

See: Description

Packages 
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:

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();
Skip navigation links

Copyright © 2007–2021 Norconex Inc.. All rights reserved.