org.openstreetmap.osmosis.core.pipeline.v0_6
Class SinkManager

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pipeline.common.TaskManager
      extended by org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager
          extended by org.openstreetmap.osmosis.core.pipeline.v0_6.SinkManager

public class SinkManager
extends PassiveTaskManager

A task manager implementation for Sink task implementations.

Author:
Brett Henderson

Constructor Summary
SinkManager(java.lang.String taskId, Sink task, java.util.Map<java.lang.String,java.lang.String> pipeArgs)
          Creates a new instance.
 
Method Summary
 void connect(PipeTasks pipeTasks)
          Connects the task to any input tasks based upon the pipes created by source tasks, and makes any output pipes available to be used by subsequent sink tasks.
 
Methods inherited from class org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager
execute, waitForCompletion
 
Methods inherited from class org.openstreetmap.osmosis.core.pipeline.common.TaskManager
getInputTask, getTaskId, setOutputTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinkManager

public SinkManager(java.lang.String taskId,
                   Sink task,
                   java.util.Map<java.lang.String,java.lang.String> pipeArgs)
Creates a new instance.

Parameters:
taskId - A unique identifier for the task. This is used to produce meaningful errors when errors occur.
task - The task instance to be managed.
pipeArgs - The arguments defining input and output pipes for the task, pipes are a logical concept for identifying how the tasks are connected together.
Method Detail

connect

public void connect(PipeTasks pipeTasks)
Connects the task to any input tasks based upon the pipes created by source tasks, and makes any output pipes available to be used by subsequent sink tasks.

Specified by:
connect in class TaskManager
Parameters:
pipeTasks - The currently registered pipe tasks. This will be modified to remove any consumed inputs, and modified to add new outputs.