org.mule.tck.functional
Class FunctionalStreamingTestComponent
java.lang.Object
org.mule.tck.functional.FunctionalStreamingTestComponent
- All Implemented Interfaces:
- Callable, EventListener
public class FunctionalStreamingTestComponent
- extends Object
- implements Callable
A service that can be used by streaming functional tests. This service accepts an
EventCallback that can be used to assert the state of the current event. To access the
service when embedded in an (XML) model, make sure that the descriptor sets the
singleton attribute true - see uses in TCP and FTP.
Note that although this implements the full StreamingService interface, nothing is
written to the output stream - this is intended as a final sink.
- See Also:
EventCallback
logger
protected transient Log logger
STREAM_SAMPLE_SIZE
public static final int STREAM_SAMPLE_SIZE
- See Also:
- Constant Field Values
STREAM_BUFFER_SIZE
public static final int STREAM_BUFFER_SIZE
- See Also:
- Constant Field Values
FunctionalStreamingTestComponent
public FunctionalStreamingTestComponent()
setEventCallback
public void setEventCallback(EventCallback eventCallback,
long targetSize)
getSummary
public String getSummary()
getNumber
public int getNumber()
onCall
public Object onCall(MuleEventContext context)
throws Exception
- Specified by:
onCall in interface Callable
- Throws:
Exception
read
protected int read(InputStream in,
byte[] buffer)
throws IOException
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.