|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface DataflowEventListener
Enables external entities to observe the state of dataflow selectors and operators
Method Summary | |
---|---|
void
|
afterRun(DataflowProcessor processor, java.util.List messages)
Invoked when the operator completes a single run When using maxForks, the method may be invoked from threads running the forks. |
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
|
beforeRun(DataflowProcessor processor, java.util.List messages)
Invoked when all messages required to trigger the operator become available in the input channels. |
java.lang.Object
|
controlMessageArrived(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
|
customEvent(DataflowProcessor processor, java.lang.Object data)
Invoked when the fireCustomEvent() method is triggered manually on a dataflow operator/selector When using maxForks, the method may be invoked from threads running the forks. |
java.lang.Object
|
messageArrived(DataflowProcessor processor, DataflowReadChannel channel, int index, java.lang.Object message)
Invoked when a message becomes available in an input channel. |
java.lang.Object
|
messageSentOut(DataflowProcessor processor, DataflowWriteChannel 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. |
Method Detail |
---|
public void afterRun(DataflowProcessor processor, java.util.List messages)
processor
- The reporting dataflow operator/selectormessages
- The incoming messages that have been processed
public void afterStart(DataflowProcessor processor)
processor
- The reporting dataflow operator/selector
public void afterStop(DataflowProcessor processor)
processor
- The reporting dataflow operator/selector
public java.util.List beforeRun(DataflowProcessor processor, java.util.List messages)
processor
- The reporting dataflow operator/selectormessages
- The incoming messages
public java.lang.Object controlMessageArrived(DataflowProcessor processor, DataflowReadChannel channel, int index, java.lang.Object message)
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 customEvent(DataflowProcessor processor, java.lang.Object data)
processor
- The reporting dataflow operator/selectordata
- The custom piece of data provided as part of the event
public java.lang.Object messageArrived(DataflowProcessor processor, DataflowReadChannel channel, int index, java.lang.Object message)
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 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
public boolean onException(DataflowProcessor processor, java.lang.Throwable e)
processor
- The reporting dataflow operator/selectore
- The thrown exception
public void registered(DataflowProcessor processor)
processor
- The reporting dataflow operator/selector
Copyright © 2008–2012 Václav Pech. All Rights Reserved.