| 
 | org.codehaus.gpars | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectgroovyx.gpars.dataflow.KanbanLink
@groovy.transform.CompileStatic(value = TypeCheckingMode.PASS) class KanbanLink
A KanbanLink is the simplest possible producer-consumer pair in a kanban-like scenario as described in
| Field Summary | |
|---|---|
| protected DataflowProcessor | consumer | 
| protected DataflowQueue | downstream | 
| protected DataflowProcessor | producer | 
| protected DataflowQueue | upstream | 
| Property Summary | |
|---|---|
| ProcessingNode | consumerSpec | 
| KanbanFlow | flow | 
| ProcessingNode | producerSpec | 
| Constructor Summary | |
| KanbanLink() | |
| Method Summary | |
|---|---|
| java.lang.Object | addOptimalNumberOfTrays()Put as many trays into the system as there are processing units. | 
| void | addTray()Putting another tray into system by adding an empty one to the upstream | 
| protected boolean | consumerAlreadyStarted() | 
| int | getId()The index of this link in its flow | 
| protected boolean | producerAlreadyStarted() | 
| void | removeTray()Removing a tray from the system by fetching the next one from the upstream | 
| void | start()Construct and start the operators if not already started. | 
| void | stop()Immediately terminating all producers and consumers | 
| KanbanLink | to(ProcessingNode consumerSpec)Second part of the sequence  | 
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() | 
| Field Detail | 
|---|
protected DataflowProcessor consumer
protected DataflowQueue downstream
protected DataflowProcessor producer
protected DataflowQueue upstream
| Property Detail | 
|---|
ProcessingNode consumerSpec
KanbanFlow flow
ProcessingNode producerSpec
| Constructor Detail | 
|---|
KanbanLink()
| Method Detail | 
|---|
java.lang.Object addOptimalNumberOfTrays()
void addTray()
protected boolean consumerAlreadyStarted()
int getId()
protected boolean producerAlreadyStarted()
void removeTray()
void start()
void stop()
KanbanLink to(ProcessingNode consumerSpec)
link producer to consumer.
Copyright © 2008–2013 Václav Pech. All Rights Reserved.