newgeekorder
unread,Apr 28, 2010, 11:46:27 AM4/28/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Korus
Hi Guys, with regards to the pipeline example, could some tasks in the
pipeline be run in parallel
For example could we add multiple Transform Task like the following
code:
ReadTask readTask = new ReadTask();
TransformTask transformTask = new TransformTask();
TransformTask transformTask2 = new TransformTask(); // add a
secondary transform task
WriteTask writeTask = new WriteTask();
// Add these tasks to the pipeline
pipeline.add("readTask", readTask);
pipeline.add("transformTask", transformTask);
pipeline.add("transformTask2", transformTask2);
pipeline.add("writeTask", writeTask);
// Join these tasks in order to know the order of execution of the
tasks
pipeline.join(readTask, transformTask); // both transform tasks
feed off the read source
pipeline.join(readTask, transformTask2);
pipeline.join(transformTask, writeTask);