|
||||||||||
PREV CLASS NEXT CLASS | 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<java.lang.Object> messages)
Invoked when the operator completes a single run. |
void |
afterStart(DataflowProcessor processor)
Invoked immediately after the operator starts by a pooled thread before the first message is obtained |
void |
afterStop(DataflowProcessor processor)
Invoked immediately after the operator terminates |
java.util.List<java.lang.Object> |
beforeRun(DataflowProcessor processor,
java.util.List<java.lang.Object> messages)
Invoked when all messages required to trigger the operator become available in the input channels. |
java.lang.Object |
controlMessageArrived(DataflowProcessor processor,
DataflowReadChannel<java.lang.Object> channel,
int index,
java.lang.Object message)
Invoked when a control message (instances of ControlMessage) becomes available in an input channel. |
java.lang.Object |
customEvent(DataflowProcessor processor,
java.lang.Object data)
Invoked when the fireCustomEvent() method is triggered manually on a dataflow operator/selector. |
java.lang.Object |
messageArrived(DataflowProcessor processor,
DataflowReadChannel<java.lang.Object> channel,
int index,
java.lang.Object message)
Invoked when a message becomes available in an input channel. |
java.lang.Object |
messageSentOut(DataflowProcessor processor,
DataflowWriteChannel<java.lang.Object> channel,
int index,
java.lang.Object message)
Invoked when a message is being bound to an output channel. |
boolean |
onException(DataflowProcessor processor,
java.lang.Throwable e)
Invoked if an exception occurs. |
void |
registered(DataflowProcessor processor)
Invoked immediately after the listener has been attached to a dataflow processor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataflowEventAdapter()
Method Detail |
---|
public void registered(DataflowProcessor processor)
registered
in interface DataflowEventListener
processor
- The reporting dataflow operator/selectorpublic void afterStart(DataflowProcessor processor)
afterStart
in interface DataflowEventListener
processor
- The reporting dataflow operator/selectorpublic void afterStop(DataflowProcessor processor)
afterStop
in interface DataflowEventListener
processor
- The reporting dataflow operator/selectorpublic boolean onException(DataflowProcessor processor, java.lang.Throwable e)
onException
in interface DataflowEventListener
processor
- The reporting dataflow operator/selectore
- The thrown exception
public java.lang.Object messageArrived(DataflowProcessor processor, DataflowReadChannel<java.lang.Object> channel, int index, java.lang.Object message)
messageArrived
in interface DataflowEventListener
processor
- The reporting dataflow operator/selectorchannel
- The input channel holding the messageindex
- The index of the input channel within the operatormessage
- The incoming message
public java.lang.Object controlMessageArrived(DataflowProcessor processor, DataflowReadChannel<java.lang.Object> channel, int index, java.lang.Object message)
controlMessageArrived
in interface DataflowEventListener
processor
- The reporting dataflow operator/selectorchannel
- The input channel holding the messageindex
- The index of the input channel within the operatormessage
- The incoming message
public java.lang.Object messageSentOut(DataflowProcessor processor, DataflowWriteChannel<java.lang.Object> channel, int index, java.lang.Object message)
messageSentOut
in interface DataflowEventListener
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
public java.util.List<java.lang.Object> beforeRun(DataflowProcessor processor, java.util.List<java.lang.Object> messages)
beforeRun
in interface DataflowEventListener
processor
- The reporting dataflow operator/selectormessages
- The incoming messages
public void afterRun(DataflowProcessor processor, java.util.List<java.lang.Object> messages)
afterRun
in interface DataflowEventListener
processor
- The reporting dataflow operator/selectormessages
- The incoming messages that have been processedpublic java.lang.Object customEvent(DataflowProcessor processor, java.lang.Object data)
customEvent
in interface DataflowEventListener
processor
- The reporting dataflow operator/selectordata
- The custom piece of data provided as part of the event
|
Copyright © 2008–2012 Václav Pech. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |