Keel 2.1RC2

org.apache.excalibur.event.command.test
Class TPCThreadManagerTestCase.Pipeline

java.lang.Object
  extended byorg.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


Field Summary
private  java.io.PrintWriter m_errorOut
           
private  Queue m_queue
           
private  java.lang.StringBuffer m_result
           
private  Source[] m_sources
           
 
Constructor Summary
(package private) TPCThreadManagerTestCase.Pipeline(java.lang.StringBuffer resultAccumulator, java.io.PrintWriter errorOut)
           
 
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
 

Field Detail

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
Constructor Detail

TPCThreadManagerTestCase.Pipeline

TPCThreadManagerTestCase.Pipeline(java.lang.StringBuffer resultAccumulator,
                                  java.io.PrintWriter errorOut)
                            throws SinkException
Method Detail

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

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.