|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.dataflow.operator.DataflowEventAdapter
public class DataflowEventAdapter
A default empty implementation of DataflowEventListener
Constructor Summary | |
DataflowEventAdapter()
|
Method Summary | |
---|---|
void
|
afterRun(DataflowProcessor processor, java.util.List messages)
Invoked when the fireCustomEvent() method is triggered manually on a dataflow operator/selector. |
void
|
afterStart(DataflowProcessor processor)
|
void
|
afterStop(DataflowProcessor processor)
|
java.util.List
|
beforeRun(DataflowProcessor processor, java.util.List messages)
Invoked when the operator completes a single run. |
java.lang.Object
|
controlMessageArrived(DataflowProcessor processor, DataflowReadChannel channel, int index, java.lang.Object message)
Invoked when a message is being bound to an output channel. |
java.lang.Object
|
customEvent(DataflowProcessor processor, java.lang.Object data)
|
java.lang.Object
|
messageArrived(DataflowProcessor processor, DataflowReadChannel channel, int index, java.lang.Object message)
Invoked when a control message (instances of ControlMessage) becomes available in an input channel. |
java.lang.Object
|
messageSentOut(DataflowProcessor processor, DataflowWriteChannel channel, int index, java.lang.Object message)
Invoked when all messages required to trigger the operator become available in the input channels. |
boolean
|
onException(DataflowProcessor processor, java.lang.Throwable e)
Invoked when a message becomes available in an input channel. |
void
|
registered(DataflowProcessor processor)
|
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() |
Constructor Detail |
---|
DataflowEventAdapter()
Method Detail |
---|
@java.lang.Overridereturn data; public void afterRun(DataflowProcessor processor, java.util.List messages)
processor
- The reporting dataflow operator/selectordata
- The custom piece of data provided as part of the event
@java.lang.Override* If any of the listeners returns true, the operator will terminate. public void afterStart(DataflowProcessor processor)
@java.lang.Overridepublic boolean onException(final DataflowProcessor processor, final Throwable e) { public void afterStop(DataflowProcessor processor)
@java.lang.Override public java.util.List beforeRun(DataflowProcessor processor, java.util.List messages)
processor
- The reporting dataflow operator/selectormessages
- The incoming messages that have been processed
@java.lang.Override public java.lang.Object controlMessageArrived(DataflowProcessor processor, DataflowReadChannel channel, int index, java.lang.Object message)
processor
- The reporting dataflow operator/selectorchannel
- The output channel to send the message toindex
- The index of the output channel within the operatormessage
- The message to send
@java.lang.Override public java.lang.Object customEvent(DataflowProcessor processor, java.lang.Object data)
@java.lang.Overridepublic Object controlMessageArrived(final DataflowProcessor processor, final DataflowReadChannel
processor
- The reporting dataflow operator/selectorchannel
- The input channel holding the messageindex
- The index of the input channel within the operatormessage
- The incoming message
@java.lang.Override} public java.lang.Object messageSentOut(DataflowProcessor processor, DataflowWriteChannel channel, int index, java.lang.Object message)
processor
- The reporting dataflow operator/selectormessages
- The incoming messages
@java.lang.Overridepublic Object messageArrived(final DataflowProcessor processor, final DataflowReadChannel
processor
- The reporting dataflow operator/selectorchannel
- The input channel holding the messageindex
- The index of the input channel within the operatormessage
- The incoming message
@java.lang.Override* @param processor The reporting dataflow operator/selector public void registered(DataflowProcessor processor)
Copyright © 2008–2013 Václav Pech. All Rights Reserved.