org.apache.jmeter.report.processor

## Class SampleContext

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

-     public class SampleContext
      extends java.lang.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
    --- | ---
    `java.util.Map<java.lang.String,java.lang.Object>` | `getData()` Gets the data storage.
    `java.io.File` | `getWorkingDirectory()` Return the root directory that consumers are authorized to use for intermediate work.
    `void` | `setWorkingDirectory(java.io.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 java.io.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(java.io.File workingDirectory)

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

    - #### getData

          public final java.util.Map<java.lang.String,java.lang.Object> getData()

      Gets the data storage.
      Returns:
        the data

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