Class AjpSampler

All Implemented Interfaces:
Serializable, Cloneable, ConfigMergabilityIndicator, Replaceable, Searchable, HTTPConstantsInterface, Interruptible, Sampler, org.apache.jmeter.testelement.TestElement, TestIterationListener, TestStateListener, ThreadListener

public class AjpSampler extends HTTPSamplerBase implements Interruptible
Selector for the AJP/1.3 protocol (i.e. what Tomcat uses with mod_jk) It allows you to test Tomcat in AJP mode without actually having Apache installed and configured
See Also:
  • Constructor Details

    • AjpSampler

      public AjpSampler()
  • Method Details

    • sample

      protected HTTPSampleResult sample(URL url, String method, boolean frd, int fd)
      Description copied from class: HTTPSamplerBase
      Samples the URL passed in and stores the result in HTTPSampleResult, following redirects and downloading page resources as appropriate.

      When getting a redirect target, redirects are not followed and resources are not downloaded. The caller will take care of this.

      Specified by:
      sample in class HTTPSamplerBase
      url - URL to sample
      method - HTTP method: GET, POST,...
      frd - whether we're getting a redirect target
      fd - Depth of this target in the frame structure. Used only to prevent infinite recursion.
      results of the sampling, can be null if u is in CacheManager
    • threadFinished

      public void threadFinished()
      Description copied from interface: ThreadListener
      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
      threadFinished in class HTTPSamplerBase
    • interrupt

      public boolean interrupt()
      Description copied from interface: Interruptible
      Interrupt the current operation if possible.
      Specified by:
      interrupt in interface Interruptible
      true if there was an operation to interrupt.