Class ExampleSampler

  • All Implemented Interfaces:
    Serializable, Cloneable, ConfigMergabilityIndicator, Searchable, Sampler, TestElement

    public class ExampleSampler
    extends AbstractSampler
    Example Sampler (non-Bean version) JMeter creates an instance of a sampler class for every occurrence of the element in every thread. [some additional copies may be created before the test run starts] Thus each sampler is guaranteed to be called by a single thread - there is no need to synchronize access to instance variables. However, access to class fields must be synchronized.
    Version:
    $Revision: 1595401 $
    See Also:
    Serialized Form
    • Constructor Detail

      • ExampleSampler

        public ExampleSampler()
    • Method Detail

      • sample

        public SampleResult sample​(Entry e)
        Obtains statistics about the given Entry, and packages the information into a SampleResult.
        Parameters:
        e - the Entry (TODO seems to be unused)
        Returns:
        information about the sample
      • getData

        public String getData()
        Returns:
        the data for the sample