org.apache.jmeter.report.processor

## Class SampleContext

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

-     public class SampleContext
      extends Object

  Defines the context in which `SampleConsumer`, `SampleProducer` will operate
  Since:
    3.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SampleContext()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,Object>` | `getData()` Gets the data storage.
    `File` | `getWorkingDirectory()` Return the root directory that consumers are authorized to use for intermediate work.
    `void` | `setWorkingDirectory(File workingDirectory)` Sets the work directory.

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

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

- - ### Constructor Detail

    - #### SampleContext

          public SampleContext()

  - ### Method Detail

    - #### getWorkingDirectory

          public final File getWorkingDirectory()

      Return the root directory that consumers are authorized to use for intermediate work.
      SampleConsumers are encourage to create their own work directories beneath this root work directory
      Returns:
        A file pointing to an existing directory

    - #### setWorkingDirectory

          public final void setWorkingDirectory(File workingDirectory)

      Sets the work directory.
      Parameters:
        `workingDirectory` - the new working directory

    - #### getData

          public final Map<String,Object> getData()

      Gets the data storage.
      Returns:
        the data

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