|
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.SubscriberSampler
public class SubscriberSampler
This class implements the JMS Subcriber sampler. It supports both receive and onMessage strategies via the ReceiveSubscriber class.
| Field Summary |
|---|
| Fields inherited from interface org.apache.jmeter.testelement.TestElement |
|---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
| Constructor Summary | |
|---|---|
SubscriberSampler()
|
|
| Method Summary | |
|---|---|
String |
getClientChoice()
Return the client choice. |
String |
getTimeout()
|
long |
getTimeoutAsLong()
|
boolean |
interrupt()
Handle an interrupt of the test. |
boolean |
isStopBetweenSamples()
|
SampleResult |
sample()
sample method will check which client it should use and call the appropriate client specific sample method. |
void |
setClientChoice(String choice)
Set the client choice. |
void |
setStopBetweenSamples(boolean selected)
|
void |
setTimeout(String timeout)
|
void |
threadFinished()
Close subscriber. |
void |
threadStarted()
Initialise the thread-local variables. |
| Methods inherited from class org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler |
|---|
getConnectionFactory, getDestination, getIterationCount, getIterations, getJNDIInitialContextFactory, getMessageHeaders, getPassword, getProviderUrl, getReadResponse, getReadResponseAsBoolean, getUseJNDIProperties, getUseJNDIPropertiesAsBoolean, getUsername, isUseAuth, sample, setConnectionFactory, setDestination, setIterations, setJNDIIntialContextFactory, setPassword, setProviderUrl, setReadResponse, 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, 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 SubscriberSampler()
| Method Detail |
|---|
public SampleResult sample()
sample in class BaseJMSSamplerpublic void threadStarted()
threadStarted in interface ThreadListenerJMeterThread.threadStarted()public void threadFinished()
threadFinished in interface ThreadListenerJMeterThread.threadFinished()public boolean interrupt()
interrupt in interface Interruptibletrue if there was an operation to interrupt.public void setClientChoice(String choice)
public String getClientChoice()
public String getTimeout()
public long getTimeoutAsLong()
public void setTimeout(String timeout)
public boolean isStopBetweenSamples()
public void setStopBetweenSamples(boolean selected)
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||