parallel


A job which executes it's child jobs in parallel.

The return state for this job depends on the return states of all the children - Complete if all the children complete, exception if there are any exceptions in the children, or not complete if any of the children fail to complete.


Property Summary

executorService The ExecutorService to use.
jobs The child jobs.
name A name, can be any text.

Example Summary

Example 1 Two jobs running in parallel.

Property Detail

executorService

Configured ByELEMENT
AccessWRITE_ONLY
RequiredNo.

The ExecutorService to use. This will be automatically set by Oddjob.

jobs

Configured ByELEMENT
AccessWRITE_ONLY
RequiredNo, but pointless if missing.

The child jobs.

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.


Examples

Example 1

Two jobs running in parallel.

<oddjob>
    <job>
        <parallel>
            <jobs>
                <echo>This runs in parallel</echo>
                <echo>With this which could be displayed first!</echo>
            </jobs>
        </parallel>
    </job>
</oddjob>


(c) Rob Gordon 2005 - 2011