Class JMSSampler
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.protocol.jms.sampler.JMSSampler
- All Implemented Interfaces:
Serializable, Cloneable, ConfigMergabilityIndicator, Searchable, Sampler, TestElement, ThreadListener
This class implements the JMS Point-to-Point sampler
- See Also:
-
Field Summary
Fields inherited from interface TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArguments(String name) booleanbooleanisOneway()booleanWhich request field to use for correlation?booleanWhich response field to use for correlation?Obtains statistics about the given Entry, and packages the information into a SampleResult.voidsetArguments(Arguments args) voidsetContent(String content) voidsetContextProvider(String string) voidvoidsetInitialContextFactory(String string) voidsetIsOneway(boolean isOneway) voidsetJMSProperties(JMSProperties jmsProperties) voidsetJMSSelector(String selector) voidsetJNDIProperties(Arguments args) voidsetNonPersistent(boolean value) voidvoidvoidsetReceiveQueue(String name) voidsetSendQueue(String name) voidsetTimeout(String s) voidsetUseReqMsgIdAsCorrelId(boolean value) voidsetUseResMsgIdAsCorrelId(boolean value) voidCalled for each thread after all samples have been processed.voidCalled for each thread before starting sampling.toString()Methods inherited from class AbstractSampler
appliesMethods inherited from class AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyMethods inherited from interface TestElement
addTestElement, canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
-
Constructor Details
-
JMSSampler
public JMSSampler()
-
-
Method Details
-
sample
Obtains statistics about the given Entry, and packages the information into a SampleResult. -
getJMSProperties
- Returns:
JMSPropertiesJMS Properties
-
setJMSProperties
- Parameters:
jmsProperties- JMS Properties
-
getJNDIProperties
-
setJNDIProperties
-
getQueueConnectionFactory
-
setQueueConnectionFactory
-
getSendQueue
-
setSendQueue
-
getReceiveQueue
-
setReceiveQueue
-
getContent
-
setContent
-
isOneway
public boolean isOneway() -
isNonPersistent
public boolean isNonPersistent() -
isUseReqMsgIdAsCorrelId
public boolean isUseReqMsgIdAsCorrelId()Which request field to use for correlation?- Returns:
- true if correlation should use the request JMSMessageID rather than JMSCorrelationID
-
isUseResMsgIdAsCorrelId
public boolean isUseResMsgIdAsCorrelId()Which response field to use for correlation?- Returns:
- true if correlation should use the response JMSMessageID rather than JMSCorrelationID
-
getInitialContextFactory
-
getContextProvider
-
setIsOneway
public void setIsOneway(boolean isOneway) -
setNonPersistent
public void setNonPersistent(boolean value) -
setUseReqMsgIdAsCorrelId
public void setUseReqMsgIdAsCorrelId(boolean value) -
setUseResMsgIdAsCorrelId
public void setUseResMsgIdAsCorrelId(boolean value) -
toString
-
threadStarted
public void threadStarted()Description copied from interface:ThreadListenerCalled for each thread before starting sampling. WARNING: this is called before any Config test elements are processed, so any properties they define will not have been merged in yet.- Specified by:
threadStartedin interfaceThreadListener- See Also:
-
getTimeout
-
getExpiration
-
getPriority
-
threadFinished
public void threadFinished()Called for each thread after all samples have been processed.- Specified by:
threadFinishedin interfaceThreadListener- See Also:
-
setArguments
-
getArguments
-
setTimeout
-
setPriority
-
setExpiration
-
getJMSSelector
- Returns:
- String JMS Selector
-
setJMSSelector
- Parameters:
selector- String selector
-
setInitialContextFactory
- Parameters:
string- name of the initial context factory to use
-
setContextProvider
- Parameters:
string- url of the provider
-