org.mactor.extensions
Class GreedyMessageSelector

java.lang.Object
  extended by org.mactor.extensions.GreedyMessageSelector
All Implemented Interfaces:
MessageSelectorCommand

public class GreedyMessageSelector
extends java.lang.Object
implements MessageSelectorCommand

Selects all messages

Author:
Lars Ivar Almli

Constructor Summary
GreedyMessageSelector()
           
 
Method Summary
 boolean isAcceptableMessage(Message message)
          The method invoked by the testrunner to build the messgte.
 void setParams(java.util.List<java.lang.String> params)
          This method is ivoked by the test runner before selector is passed to the message broker during subscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreedyMessageSelector

public GreedyMessageSelector()
Method Detail

setParams

public void setParams(java.util.List<java.lang.String> params)
               throws MactorException
Description copied from interface: MessageSelectorCommand
This method is ivoked by the test runner before selector is passed to the message broker during subscribe

Specified by:
setParams in interface MessageSelectorCommand
Parameters:
params - the list of parameteres specifed for the given node in the test-spec xml (after the ##{...} substitution has been performed)
Throws:
MactorException - if some problem occured (this will cause the test to fail)

isAcceptableMessage

public boolean isAcceptableMessage(Message message)
Description copied from interface: MessageSelectorCommand
The method invoked by the testrunner to build the messgte.

Specified by:
isAcceptableMessage in interface MessageSelectorCommand
Returns:
the built message


Copyright © 2008. All Rights Reserved.