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
,org.apache.jmeter.testelement.TestElement
,ThreadListener
This class implements the JMS Point-to-Point sampler
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.since 4.0 replaced by JMS_COMMUNICATION_STYLEstatic final String
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArguments
(String name) int
boolean
isBrowse()
boolean
boolean
boolean
isOneway()
boolean
isRead()
boolean
Which request field to use for correlation?boolean
Which response field to use for correlation?Obtains statistics about the given Entry, and packages the information into a SampleResult.void
setArguments
(Arguments args) void
setCommunicationstyle
(int communicationStyle) void
setContent
(String content) void
setContextProvider
(String string) void
void
setInitialContextFactory
(String string) void
setIsOneway
(boolean isOneway) void
setJMSProperties
(JMSProperties jmsProperties) void
setJMSSelector
(String selector) void
setJNDIProperties
(Arguments args) void
setNonPersistent
(boolean value) void
setNumberOfSamplesToAggregate
(String selector) void
void
void
setReceiveQueue
(String name) void
setSendQueue
(String name) void
setTimeout
(String s) void
setUseReqMsgIdAsCorrelId
(boolean value) void
setUseResMsgIdAsCorrelId
(boolean value) void
Called for each thread after all samples have been processed.void
Called for each thread before starting sampling.toString()
Methods inherited from class org.apache.jmeter.samplers.AbstractSampler
applies
Methods inherited from class org.apache.jmeter.testelement.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, getPropertyOrNull, 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, traverseProperty
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.jmeter.testelement.TestElement
addTestElement, canRemove, clear, clearTestElementChildren, clone, get, get, get, get, get, get, get, get, get, getComment, getName, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getPropertyOrNull, getProps, getSchema, getString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, removeProperty, set, set, set, set, set, set, set, set, set, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
-
Field Details
-
IS_ONE_WAY
Deprecated.since 4.0 replaced by JMS_COMMUNICATION_STYLE- See Also:
-
JMS_COMMUNICATION_STYLE
- See Also:
-
-
Constructor Details
-
JMSSampler
public JMSSampler()
-
-
Method Details
-
sample
Obtains statistics about the given Entry, and packages the information into a SampleResult. -
getJMSProperties
- Returns:
JMSProperties
JMS Properties
-
setJMSProperties
- Parameters:
jmsProperties
- JMS Properties
-
getJNDIProperties
-
setJNDIProperties
-
getQueueConnectionFactory
-
setQueueConnectionFactory
-
getSendQueue
-
setSendQueue
-
getReceiveQueue
-
setReceiveQueue
-
getContent
-
setContent
-
isOneway
public boolean isOneway() -
isRead
public boolean isRead() -
isBrowse
public boolean isBrowse() -
isClearQueue
public boolean isClearQueue() -
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
-
getCommunicationstyle
public int getCommunicationstyle() -
getCommunicationstyleString
-
setCommunicationstyle
public void setCommunicationstyle(int communicationStyle) -
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:ThreadListener
Called 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. See org.apache.jmeter.threads.JMeterThread#threadStarted()- Specified by:
threadStarted
in interfaceThreadListener
-
getTimeout
-
getExpiration
-
getPriority
-
threadFinished
public void threadFinished()Called for each thread after all samples have been processed. See org.apache.jmeter.threads.JMeterThread#threadFinished(org.apache.jmeter.engine.event.LoopIterationListener)- Specified by:
threadFinished
in interfaceThreadListener
-
setArguments
-
getArguments
-
setTimeout
-
setPriority
-
setExpiration
-
getJMSSelector
- Returns:
- String JMS Selector
-
setJMSSelector
- Parameters:
selector
- String selector
-
getNumberOfSamplesToAggregate
-
setNumberOfSamplesToAggregate
-
setInitialContextFactory
- Parameters:
string
- name of the initial context factory to use
-
setContextProvider
- Parameters:
string
- url of the provider
-