Class JMSSampler

All Implemented Interfaces:
Serializable, Cloneable, ConfigMergabilityIndicator, Searchable, Sampler, org.apache.jmeter.testelement.TestElement, ThreadListener

public class JMSSampler extends AbstractSampler implements ThreadListener
This class implements the JMS Point-to-Point sampler
See Also:
  • Field Details

  • Constructor Details

    • JMSSampler

      public JMSSampler()
  • Method Details

    • sample

      public SampleResult sample(Entry entry)
      Obtains statistics about the given Entry, and packages the information into a SampleResult.
      Specified by:
      sample in interface Sampler
      entry - the Entry (TODO seems to be unused)
      information about the sample
    • getJMSProperties

      public JMSProperties getJMSProperties()
      JMSProperties JMS Properties
    • setJMSProperties

      public void setJMSProperties(JMSProperties jmsProperties)
      jmsProperties - JMS Properties
    • getJNDIProperties

      public Arguments getJNDIProperties()
    • setJNDIProperties

      public void setJNDIProperties(Arguments args)
    • getQueueConnectionFactory

      public String getQueueConnectionFactory()
    • setQueueConnectionFactory

      public void setQueueConnectionFactory(String qcf)
    • getSendQueue

      public String getSendQueue()
    • setSendQueue

      public void setSendQueue(String name)
    • getReceiveQueue

      public String getReceiveQueue()
    • setReceiveQueue

      public void setReceiveQueue(String name)
    • getContent

      public String getContent()
    • setContent

      public void setContent(String content)
    • 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?
      true if correlation should use the request JMSMessageID rather than JMSCorrelationID
    • isUseResMsgIdAsCorrelId

      public boolean isUseResMsgIdAsCorrelId()
      Which response field to use for correlation?
      true if correlation should use the response JMSMessageID rather than JMSCorrelationID
    • getInitialContextFactory

      public String getInitialContextFactory()
    • getContextProvider

      public String getContextProvider()
    • getCommunicationstyle

      public int getCommunicationstyle()
    • getCommunicationstyleString

      public String 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

      public String toString()
      toString in class Object
    • 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 interface ThreadListener
    • getTimeout

      public String getTimeout()
    • getExpiration

      public String getExpiration()
    • getPriority

      public String 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 interface ThreadListener
    • setArguments

      public void setArguments(Arguments args)
    • getArguments

      public Arguments getArguments(String name)
    • setTimeout

      public void setTimeout(String s)
    • setPriority

      public void setPriority(String s)
    • setExpiration

      public void setExpiration(String s)
    • getJMSSelector

      public String getJMSSelector()
      String JMS Selector
    • setJMSSelector

      public void setJMSSelector(String selector)
      selector - String selector
    • getNumberOfSamplesToAggregate

      public String getNumberOfSamplesToAggregate()
    • setNumberOfSamplesToAggregate

      public void setNumberOfSamplesToAggregate(String selector)
    • setInitialContextFactory

      public void setInitialContextFactory(String string)
      string - name of the initial context factory to use
    • setContextProvider

      public void setContextProvider(String string)
      string - url of the provider