|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.pipeline.common.PipeTasks
public class PipeTasks
Maintains the tasks that have been registered as producing data during the connection process.
Constructor Summary | |
---|---|
PipeTasks()
Creates a new instance. |
Method Summary | |
---|---|
int |
defaultTaskSize()
Returns how many default pipes are stored in this container. |
java.util.Set<java.lang.String> |
getPipeNames()
Returns the names of all of the currently registered pipes. |
void |
putTask(java.lang.String taskId,
java.lang.String pipeName,
Task task)
Adds the specified task using the specified name. |
void |
putTask(java.lang.String taskId,
Task task)
Adds the specified task to the default pipe list. |
Task |
retrieveTask(java.lang.String taskId,
java.lang.Class<? extends Task> requiredTaskType)
Removes and returns the next available task registered under a default name. |
Task |
retrieveTask(java.lang.String taskId,
java.lang.String pipeName,
java.lang.Class<? extends Task> requiredTaskType)
Removes and returns the task registered under the specified name. |
int |
size()
Returns the number of pipes stored in this container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PipeTasks()
Method Detail |
---|
public void putTask(java.lang.String taskId, java.lang.String pipeName, Task task)
taskId
- The unique identifier of the task perfroming this request.pipeName
- The name to register the task under.task
- The task to be added.public void putTask(java.lang.String taskId, Task task)
taskId
- The unique identifier of the task performing this request.task
- The task to be added.public Task retrieveTask(java.lang.String taskId, java.lang.String pipeName, java.lang.Class<? extends Task> requiredTaskType)
taskId
- The unique identifier of the task perfroming this request.pipeName
- The name of the registered task.requiredTaskType
- The required type of the input task.
public Task retrieveTask(java.lang.String taskId, java.lang.Class<? extends Task> requiredTaskType)
taskId
- The unique identifier of the task perfroming this request.requiredTaskType
- The required type of the input task.
public int size()
public int defaultTaskSize()
public java.util.Set<java.lang.String> getPipeNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |