| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.exolab.jmscts.tools.MessagingTool
Messaging tool helper
| Constructor Summary | |
| MessagingTool() | |
| Method Summary | |
| protected abstract  void | doInvoke()Invoke the messaging tool | 
| protected  TestContext | getContext()Returns the connection factory test context | 
| protected  int | getCount()Returns the number of messages to process | 
| protected  javax.jms.Destination | getDestination()Returns the destination | 
| protected  void | initialise()Initialise the tool | 
|  void | invoke()Invoke the messaging tool | 
| protected  void | log(javax.jms.Message message)Log a message | 
|  void | setConfig(java.lang.String path)Set the configuration | 
|  void | setConnectionFactory(java.lang.String name)Set the connection factory name | 
|  void | setCount(int count)Sets number of messages to process | 
|  void | setDestination(java.lang.String name)Set the destination name | 
|  void | setVerbose(boolean verbose)Enable/disable verbose logging of messages | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public MessagingTool()
| Method Detail | 
public void setConfig(java.lang.String path)
path - the path to the provider configurationpublic void setConnectionFactory(java.lang.String name)
name - the connection factory namepublic void setDestination(java.lang.String name)
name - the destination namepublic void setCount(int count)
count - the number of messages to processpublic void setVerbose(boolean verbose)
verbose - if true, log message properties
public void invoke()
            throws java.lang.Exception
java.lang.Exception - for any error
protected abstract void doInvoke()
                          throws java.lang.Exception
java.lang.Exception - for any error
protected void initialise()
                   throws java.lang.Exception
java.lang.Exception - for any errorprotected TestContext getContext()
protected javax.jms.Destination getDestination()
protected int getCount()
protected void log(javax.jms.Message message)
message - the message to log| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||