I - Input type of Task FarmO - Output type of Task FarmT - Type of the parallelized stagepublic class StaticTaskFarmStage<I,O,T extends ITaskFarmDuplicable<I,O>> extends CompositeStage implements ITransformation<I,O>
DEFAULT_PIPE_CAPACITY| Modifier | Constructor and Description | 
|---|---|
|   | StaticTaskFarmStage(T workerStage)Creates a task farm stage with n worker stages and a pipe capacity of , where n
 is | 
|   | StaticTaskFarmStage(T workerStage,
                   int numberStages) | 
|   | StaticTaskFarmStage(T workerStage,
                   int numberStages,
                   int pipeCapacity) | 
| protected  | StaticTaskFarmStage(T workerStage,
                   int numberStages,
                   int pipeCapacity,
                   Distributor<I> distributor,
                   Merger<O> merger) | 
| Modifier and Type | Method and Description | 
|---|---|
| InputPort<I> | getInputPort()Returns the input port of the task farm/distributor of the task farm. | 
| OutputPort<O> | getOutputPort()Returns the output port of the task farm/merger of the task farm. | 
| protected int | getPipeCapacity() | 
| List<ITaskFarmDuplicable<I,O>> | getWorkerStages() | 
connectPorts, connectPorts, createInputPort, createOutputPortpublic StaticTaskFarmStage(T workerStage)
Runtime.getRuntime().availableProcessors()
workerStage - public StaticTaskFarmStage(T workerStage, int numberStages)
public StaticTaskFarmStage(T workerStage, int numberStages, int pipeCapacity)
protected StaticTaskFarmStage(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.