org.jboss.soa.esb.actions
Class TestMessageStoreSink

java.lang.Object
  extended by org.jboss.soa.esb.actions.TestMessageStoreSink

public class TestMessageStoreSink
extends java.lang.Object

Simple action that passes the message to a logging mechanism. This action is primarily used for testing the quickstarts.

Author:
Kevin Conner

Constructor Summary
TestMessageStoreSink()
           
 
Method Summary
 void clearMessages()
          Clear the messages in the sink.
 void logMessage(java.lang.String message)
          Log the message in the sink.
 java.lang.String[] waitForMessages(int numberOfMessages, long maxDelay)
          Wait for the specified number of messages to appear in the sink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMessageStoreSink

public TestMessageStoreSink()
Method Detail

waitForMessages

public java.lang.String[] waitForMessages(int numberOfMessages,
                                          long maxDelay)
Wait for the specified number of messages to appear in the sink.

Parameters:
numberOfMessages - The number of messages.
maxDelay - The maximum delay for waiting.

logMessage

public void logMessage(java.lang.String message)
Log the message in the sink.

Parameters:
message - The current message.

clearMessages

public void clearMessages()
Clear the messages in the sink.