org.apache.jmeter.report.processor

## Class AbstractSampleSource

- java.lang.Object
- - org.apache.jmeter.report.processor.AbstractSampleSource

- All Implemented Interfaces:
    java.lang.Runnable, SampleSource
  Direct Known Subclasses:
    CsvFileSampleSource

      public abstract class AbstractSampleSource
      extends java.lang.Object
      implements SampleSource

  Author:
    Ubik

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `AbstractSampleSource()` Instantiates a new abstract sample source.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | `addSampleConsumer(SampleConsumer consumer)` Add a sample consumer to this sample source.
    `SampleContext` | `getSampleContext()` Gets the sample context.
    `abstract void` | `removeSampleConsumer(SampleConsumer consumer)` Remove a sample consumer from this sample source.
    `abstract void` | `run()`
    `abstract void` | `setSampleConsumers(java.util.List<SampleConsumer> consumers)` Sets the specified sample consumers that will consume samples produced by this sample source.
    `void` | `setSampleContext(SampleContext sampleContext)` Sets the sample context.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AbstractSampleSource

          protected AbstractSampleSource()

      Instantiates a new abstract sample source.

  - ### Method Detail

    - #### run

          public abstract void run()

      Specified by:
        `run` in interface `java.lang.Runnable`

    - #### getSampleContext

          public SampleContext getSampleContext()

      Description copied from interface: `SampleSource`
      Gets the sample context.
      Specified by:
        `getSampleContext` in interface `SampleSource`
      Returns:
        the sampleContext

    - #### setSampleContext

          public void setSampleContext(SampleContext sampleContext)

      Description copied from interface: `SampleSource`
      Sets the sample context.
      Specified by:
        `setSampleContext` in interface `SampleSource`
      Parameters:
        `sampleContext` - the sampleContext to set

    - #### setSampleConsumers

          public abstract void setSampleConsumers(java.util.List<SampleConsumer> consumers)

      Description copied from interface: `SampleSource`
      Sets the specified sample consumers that will consume samples produced by this sample source.
      Specified by:
        `setSampleConsumers` in interface `SampleSource`
      Parameters:
        `consumers` - consumers to be set

    - #### addSampleConsumer

          public abstract void addSampleConsumer(SampleConsumer consumer)

      Description copied from interface: `SampleSource`
      Add a sample consumer to this sample source.
      Specified by:
        `addSampleConsumer` in interface `SampleSource`
      Parameters:
        `consumer` - consumer to be added

    - #### removeSampleConsumer

          public abstract void removeSampleConsumer(SampleConsumer consumer)

      Description copied from interface: `SampleSource`
      Remove a sample consumer from this sample source.
      Specified by:
        `removeSampleConsumer` in interface `SampleSource`
      Parameters:
        `consumer` - consumer to be removed

Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.