org.apache.excalibur.event.command.test
Class TPCThreadManagerTestCase.Pipeline
java.lang.Object
org.apache.excalibur.event.command.test.TPCThreadManagerTestCase.Pipeline
- All Implemented Interfaces:
- EventHandler, EventPipeline
- Enclosing class:
- TPCThreadManagerTestCase
- private static class TPCThreadManagerTestCase.Pipeline
- extends java.lang.Object
- implements EventPipeline, EventHandler
| Method Summary |
EventHandler |
getEventHandler()
Returns the reference to the EventHandler that the events from all the Sinks get merged into. |
Sink |
getSink()
|
Source[] |
getSources()
There can be many different sources to merge into a pipeline. |
void |
handleEvent(java.lang.Object element)
Handle one event at a time. |
void |
handleEvents(java.lang.Object[] elements)
Handle a whole array of events at a time. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_queue
private final Queue m_queue
-
m_sources
private final Source[] m_sources
-
m_result
private final java.lang.StringBuffer m_result
-
m_errorOut
private final java.io.PrintWriter m_errorOut
-
TPCThreadManagerTestCase.Pipeline
TPCThreadManagerTestCase.Pipeline(java.lang.StringBuffer resultAccumulator,
java.io.PrintWriter errorOut)
throws SinkException
getEventHandler
public EventHandler getEventHandler()
- Description copied from interface:
EventPipeline
-
Returns the reference to the EventHandler that the events from all the Sinks get merged into.
-
- Specified by:
getEventHandler in interface EventPipeline
-
- Returns:
- the handler for the pipeline
getSources
public final Source[] getSources()
- Description copied from interface:
EventPipeline
-
There can be many different sources to merge into a pipeline. For the CommandManager, there is only one sink.
-
- Specified by:
getSources in interface EventPipeline
-
- Returns:
- the array of sources that feed the handler
getSink
public final Sink getSink()
-
-
handleEvent
public void handleEvent(java.lang.Object element)
- Description copied from interface:
EventHandler
-
Handle one event at a time.
-
- Specified by:
handleEvent in interface EventHandler
-
- Parameters:
element - The element that the EventHandler must process
handleEvents
public void handleEvents(java.lang.Object[] elements)
- Description copied from interface:
EventHandler
-
Handle a whole array of events at a time.
-
- Specified by:
handleEvents in interface EventHandler
-
- Parameters:
elements - The array of elements that the EventHandler must process
Please see keelframework.org for information about new Keel releases.