org.mactor.framework.commandexecutors.shell
Class ShellMessageSelectorCommandExecutor

java.lang.Object
  extended by org.mactor.framework.commandexecutors.shell.ShellMessageSelectorCommandExecutor
All Implemented Interfaces:
MessageSelectorCommandExecutor, MessageSelectorCommand

public class ShellMessageSelectorCommandExecutor
extends java.lang.Object
implements MessageSelectorCommandExecutor


Constructor Summary
ShellMessageSelectorCommandExecutor(java.lang.String command, java.util.List<java.lang.String> params)
           
 
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

ShellMessageSelectorCommandExecutor

public ShellMessageSelectorCommandExecutor(java.lang.String command,
                                           java.util.List<java.lang.String> params)
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 MessageSelectorCommandExecutor
Specified by:
isAcceptableMessage in interface MessageSelectorCommand
Returns:
the built message


Copyright © 2008. All Rights Reserved.