This class implements the JMS Publisher sampler.
getConfigChoice
public String getConfigChoice()
return the config choice
Converts from old JMX files which used the local language string
getFileContent
public String getFileContent(String path)
The implementation uses TextFile to load the contents of the file and
returns a string.
getInputFile
public String getInputFile()
return the path of the input file
getMessageChoice
public String getMessageChoice()
return the source of the message
getRandomPath
public String getRandomPath()
return the random path for messages
getTextMessage
public String getTextMessage()
return the text for the message
sample
public SampleResult sample()
The implementation will publish n messages within a for loop. Once n
messages are published, it sets the attributes of SampleResult.
- sample in interface BaseJMSSampler
- the populated sample result
setConfigChoice
public void setConfigChoice(String choice)
set the config choice
setInputFile
public void setInputFile(String file)
set the input file for the publisher
setMessageChoice
public void setMessageChoice(String choice)
set the source of the message
setRandomPath
public void setRandomPath(String path)
set the random path for the messages
setTextMessage
public void setTextMessage(String message)
set the text for the message
testEnded
public void testEnded()
endTest cleans up the client
- testEnded in interface TestListener
junit.framework.TestListener.endTest(junit.framework.Test)
testEnded
public void testEnded(String test)
the implementation calls testEnded() without any parameters.
- testEnded in interface TestListener
testStarted
public void testStarted(String test)
the implementation calls testStarted() without any parameters.
- testStarted in interface TestListener