|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler
org.apache.jmeter.protocol.jms.sampler.PublisherSampler
This class implements the JMS Publisher sampler.
| Field Summary |
| Fields inherited from interface org.apache.jmeter.testelement.TestElement |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
| Constructor Summary | |
PublisherSampler()
|
|
| Method Summary | |
String |
getConfigChoice()
return the config choice Converts from old JMX files which used the local language string |
String |
getFileContent(String path)
The implementation uses TextFile to load the contents of the file and returns a string. |
String |
getInputFile()
return the path of the input file |
String |
getMessageChoice()
return the source of the message |
String |
getRandomPath()
return the random path for messages |
String |
getTextMessage()
return the text for the message |
SampleResult |
sample()
The implementation will publish n messages within a for loop. |
SampleResult |
sample(Entry e)
The implementation calls sample() without any parameters |
void |
setConfigChoice(String choice)
set the config choice |
void |
setInputFile(String file)
set the input file for the publisher |
void |
setMessageChoice(String choice)
set the source of the message |
void |
setRandomPath(String path)
set the random path for the messages |
void |
setTextMessage(String message)
set the text for the message |
void |
testEnded()
endTest cleans up the client |
void |
testEnded(String test)
the implementation calls testEnded() without any parameters. |
void |
testIterationStart(LoopIterationEvent event)
NO implementation provided for the sampler. |
void |
testStarted()
Called just before the start of the test from the main engine thread. |
void |
testStarted(String test)
the implementation calls testStarted() without any parameters. |
| Methods inherited from class org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler |
getConnectionFactory, getIterationCount, getIterations, getJNDIInitialContextFactory, getPassword, getProviderUrl, getReadResponse, getReadResponseAsBoolean, getTopic, getUseJNDIProperties, getUseJNDIPropertiesAsBoolean, getUsername, isUseAuth, setConnectionFactory, setIterations, setJNDIIntialContextFactory, setPassword, setProviderUrl, setReadResponse, setTopic, setUseAuth, setUseJNDIProperties, setUsername |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jmeter.testelement.TestElement |
addTestElement, canRemove, clear, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse |
| Constructor Detail |
public PublisherSampler()
| Method Detail |
public void testStarted(String test)
testStarted in interface TestListenerStandardJMeterEngine.run()public void testEnded(String test)
testEnded in interface TestListenerStandardJMeterEngine.stopTest()public void testEnded()
testEnded in interface TestListenerTestListener.endTest(junit.framework.Test)public void testStarted()
TestListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestListenerStandardJMeterEngine.run()public void testIterationStart(LoopIterationEvent event)
testIterationStart in interface TestListenerevent - public SampleResult sample(Entry e)
sample in interface Samplersample in class BaseJMSSamplerpublic SampleResult sample()
sample in class BaseJMSSamplerpublic String getFileContent(String path)
path -
public void setConfigChoice(String choice)
choice - public String getConfigChoice()
public void setMessageChoice(String choice)
choice - public String getMessageChoice()
public void setInputFile(String file)
file - public String getInputFile()
public void setRandomPath(String path)
path - public String getRandomPath()
public void setTextMessage(String message)
message - public String getTextMessage()
|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||