I
- Input type of Task FarmO
- Output type of Task FarmT
- Type of the parallelized stageStaticTaskFarmStage
instead.@Deprecated public class TaskFarmStage<I,O,T extends ITaskFarmDuplicable<I,O>> extends CompositeStage implements ITransformation<I,O>
DEFAULT_PIPE_CAPACITY
Modifier | Constructor and Description |
---|---|
|
TaskFarmStage(T workerStage)
Deprecated.
Creates a task farm stage with n worker stages and a pipe capacity of , where n
is
|
|
TaskFarmStage(T workerStage,
int numberStages)
Deprecated.
|
|
TaskFarmStage(T workerStage,
int numberStages,
int pipeCapacity)
Deprecated.
|
protected |
TaskFarmStage(T workerStage,
int numberStages,
int pipeCapacity,
Distributor<I> distributor,
Merger<O> merger)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
InputPort<I> |
getInputPort()
Deprecated.
Returns the input port of the task farm/distributor of the task farm.
|
OutputPort<O> |
getOutputPort()
Deprecated.
Returns the output port of the task farm/merger of the task farm.
|
protected int |
getPipeCapacity()
Deprecated.
|
List<ITaskFarmDuplicable<I,O>> |
getWorkerStages()
Deprecated.
|
connectPorts, connectPorts, createInputPort, createOutputPort
public TaskFarmStage(T workerStage)
Runtime.getRuntime().availableProcessors()
workerStage
- public TaskFarmStage(T workerStage, int numberStages)
public TaskFarmStage(T workerStage, int numberStages, int pipeCapacity)
protected TaskFarmStage(T workerStage, int numberStages, int pipeCapacity, Distributor<I> distributor, Merger<O> merger)
public InputPort<I> getInputPort()
getInputPort
in interface ITransformation<I,O>
public OutputPort<O> getOutputPort()
getOutputPort
in interface ITransformation<I,O>
protected int getPipeCapacity()
public List<ITaskFarmDuplicable<I,O>> getWorkerStages()
Copyright © 2015–2020. All rights reserved.