org.openstreetmap.osmosis.core.pipeline.common
Class Pipeline

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pipeline.common.Pipeline

public class Pipeline
extends java.lang.Object

Manages a processing pipeline from parsing of arguments, to creating and instantiating tasks, running of the pipeline, and waiting until pipeline completion.

Author:
Brett Henderson

Constructor Summary
Pipeline(TaskManagerFactoryRegister factoryRegister)
          Creates a new instance.
 
Method Summary
 void execute()
          Launches the execution of the tasks within the pipeline.
 void prepare(java.util.List<TaskConfiguration> taskInfoList)
          Instantiates and configures all tasks within the pipeline.
 void waitForCompletion()
          Waits for all tasks within the pipeline to complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pipeline

public Pipeline(TaskManagerFactoryRegister factoryRegister)
Creates a new instance.

Parameters:
factoryRegister - The register containing all known task manager factories.
Method Detail

prepare

public void prepare(java.util.List<TaskConfiguration> taskInfoList)
Instantiates and configures all tasks within the pipeline.

Parameters:
taskInfoList - The list of task information objects.

execute

public void execute()
Launches the execution of the tasks within the pipeline.


waitForCompletion

public void waitForCompletion()
Waits for all tasks within the pipeline to complete.