org.apache.jmeter.protocol.jms.sampler
Class SubscriberSampler
- Cloneable, MessageListener, Sampler, Serializable, TestElement, TestListener
public class SubscriberSampler
This class implements the JMS Subcriber sampler
getConnectionFactory , getIterationCount , getIterations , getJNDIInitialContextFactory , getPassword , getProviderUrl , getReadResponse , getReadResponseAsBoolean , getTopic , getUseJNDIProperties , getUseJNDIPropertiesAsBoolean , getUsername , isUseAuth , sample , sample , setConnectionFactory , setIterations , setJNDIIntialContextFactory , setPassword , setProviderUrl , setReadResponse , setTopic , setUseAuth , setUseJNDIProperties , setUsername |
addProperty , addTestElement , canRemove , clear , clearTemporary , clone , emptyTemporary , equals , getComment , getName , getProperty , getPropertyAsBoolean , getPropertyAsBoolean , getPropertyAsDouble , getPropertyAsFloat , getPropertyAsInt , getPropertyAsInt , getPropertyAsLong , getPropertyAsString , getPropertyAsString , getThreadContext , getThreadName , hashCode , isEnabled , isRunningVersion , isTemporary , logProperties , mergeIn , propertyIterator , recoverRunningVersion , removeProperty , setComment , setName , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setRunningVersion , setTemporary , setThreadContext , setThreadName , traverse , traverseCollection , traverseMap , traverseProperty |
SubscriberSampler
public SubscriberSampler()
getClientChoice
public String getClientChoice()
Return the client choice.
- the client choice, either RECEIVE_RSC or ON_MESSAGE_RSC
onMessage
public void onMessage(Message message)
The sampler implements MessageListener directly and sets itself as the
listener with the TopicSubscriber.
sample
public SampleResult sample()
sample method will check which client it should use and call the
appropriate client specific sample method.
- sample in interface BaseJMSSampler
- the appropriate sample result
setClientChoice
public void setClientChoice(String choice)
Set the client choice. There are two options: ReceiveSusbscriber and
OnMessageSubscriber.
testEnded
public void testEnded()
testEnded is called by Jmeter's engine.
Clears the client pool.
- testEnded in interface TestListener
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.