org.apache.jmeter.report.config

## Class ReportGeneratorConfiguration

- java.lang.Object
- - org.apache.jmeter.report.config.ReportGeneratorConfiguration

-     public class ReportGeneratorConfiguration
      extends java.lang.Object

  The class ReportGeneratorConfiguration describes the configuration of the report generator.
  Since:
    3.0

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `EXPORTER_KEY_FILTERS_ONLY_SAMPLE_SERIES`
    `static java.lang.Boolean` | `EXPORTER_KEY_FILTERS_ONLY_SAMPLE_SERIES_DEFAULT`
    `static java.lang.String` | `EXPORTER_KEY_GRAPH_EXTRA_OPTIONS`
    `static java.lang.String` | `EXPORTER_KEY_SERIES_FILTER`
    `static java.lang.String` | `EXPORTER_KEY_SERIES_FILTER_DEFAULT`
    `static java.lang.String` | `EXPORTER_KEY_SHOW_CONTROLLERS_ONLY`
    `static java.lang.Boolean` | `EXPORTER_KEY_SHOW_CONTROLLERS_ONLY_DEFAULT`
    `static java.lang.String` | `GRAPH_KEY_EXCLUDE_CONTROLLERS`
    `static java.lang.Boolean` | `GRAPH_KEY_EXCLUDE_CONTROLLERS_DEFAULT`
    `static java.lang.String` | `GRAPH_KEY_TITLE`
    `static java.lang.String` | `GRAPH_KEY_TITLE_DEFAULT`
    `static char` | `KEY_DELIMITER`
    `static java.lang.String` | `REPORT_GENERATOR_EXPORTER_KEY_PREFIX`
    `static java.lang.String` | `REPORT_GENERATOR_GRAPH_KEY_PREFIX`
    `static java.lang.String` | `REPORT_GENERATOR_KEY_PREFIX`
    `static java.lang.String` | `REPORT_GENERATOR_KEY_RANGE_DATE_FORMAT`
    `static java.lang.String` | `REPORT_GENERATOR_KEY_TEMP_DIR`
    `static java.lang.String` | `SUBCONF_KEY_CLASSNAME`
    `static java.lang.String` | `SUBCONF_KEY_PROPERTY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReportGeneratorConfiguration()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Map<java.lang.String,java.lang.Long[]>` | `getApdexPerTransaction()` Gets the apdex per transaction map
    `static java.util.Map<java.lang.String,java.lang.Long[]>` | `getApdexPerTransactionParts(java.lang.String apdexPerTransaction)` Parses a string coming from properties to fill a map containing sample names as keys and an array of 2 longs [satisfied, tolerated] as values.
    `long` | `getApdexSatisfiedThreshold()` Gets the apdex satisfied threshold.
    `long` | `getApdexToleratedThreshold()` Gets the apdex tolerated threshold.
    `java.util.Date` | `getEndDate()`
    `java.util.Map<java.lang.String,ExporterConfiguration>` | `getExportConfigurations()` Gets the export configurations.
    `static java.lang.String` | `getExporterPropertyKey(java.lang.String exporterId, java.lang.String propertyName)` Gets the exporter property key from the specified identifier and property name.
    `java.util.regex.Pattern` | `getFilteredSamplesPattern()`
    `java.util.Map<java.lang.String,GraphConfiguration>` | `getGraphConfigurations()` Gets the graph configurations.
    `static java.lang.String` | `getGraphPropertyKey(java.lang.String graphId, java.lang.String propertyName)` Gets the graph property key from the specified identifier and property name.
    `java.lang.String` | `getReportTitle()`
    `java.lang.String` | `getSampleFilter()` Gets the overall sample filter.
    `java.util.Date` | `getStartDate()`
    `static java.lang.String` | `getSubConfigurationPropertyKey(java.lang.String keyPrefix, java.lang.String subConfId, java.lang.String propertyName)` Gets the sub configuration property key from the specified key prefix, sub configuration identifier and property name.
    `static java.lang.String` | `getSubConfigurationPropertyPrefix(java.lang.String keyPrefix, java.lang.String subConfId)` Gets the sub configuration property prefix from the specified key prefix and sub configuration identifier.
    `java.io.File` | `getTempDirectory()` Gets the temporary directory.
    `boolean` | `isIgnoreTCFromTop5ErrorsBySampler()`
    `static ReportGeneratorConfiguration` | `loadFromProperties(java.util.Properties properties)` Load a configuration from the specified properties.
    `void` | `setApdexPerTransaction(java.util.Map<java.lang.String,java.lang.Long[]> apdexPerTransaction)` Sets the apdex per transaction map.
    `void` | `setApdexSatisfiedThreshold(long apdexSatisfiedThreshold)` Sets the apdex satisfied threshold.
    `void` | `setApdexToleratedThreshold(long apdexToleratedThreshold)` Sets the apdex tolerated threshold.
    `void` | `setEndDate(java.util.Date endDate)`
    `void` | `setIgnoreTCFromTop5ErrorsBySampler(boolean ignoreTCFromTop5ErrorsBySampler)`
    `void` | `setReportTitle(java.lang.String reportTitle)`
    `void` | `setSampleFilter(java.lang.String sampleFilter)` Sets the overall sample filter.
    `void` | `setStartDate(java.util.Date startDate)`
    `void` | `setTempDirectory(java.io.File tempDirectory)` Sets the temporary directory.

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

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

- - ### Field Detail

    - #### KEY_DELIMITER

          public static final char KEY_DELIMITER

      See Also:
        Constant Field Values

    - #### REPORT_GENERATOR_KEY_PREFIX

          public static final java.lang.String REPORT_GENERATOR_KEY_PREFIX

      See Also:
        Constant Field Values

    - #### REPORT_GENERATOR_KEY_RANGE_DATE_FORMAT

          public static final java.lang.String REPORT_GENERATOR_KEY_RANGE_DATE_FORMAT

      See Also:
        Constant Field Values

    - #### REPORT_GENERATOR_GRAPH_KEY_PREFIX

          public static final java.lang.String REPORT_GENERATOR_GRAPH_KEY_PREFIX

      See Also:
        Constant Field Values

    - #### REPORT_GENERATOR_EXPORTER_KEY_PREFIX

          public static final java.lang.String REPORT_GENERATOR_EXPORTER_KEY_PREFIX

      See Also:
        Constant Field Values

    - #### REPORT_GENERATOR_KEY_TEMP_DIR

          public static final java.lang.String REPORT_GENERATOR_KEY_TEMP_DIR

      See Also:
        Constant Field Values

    - #### GRAPH_KEY_EXCLUDE_CONTROLLERS

          public static final java.lang.String GRAPH_KEY_EXCLUDE_CONTROLLERS

      See Also:
        Constant Field Values

    - #### GRAPH_KEY_EXCLUDE_CONTROLLERS_DEFAULT

          public static final java.lang.Boolean GRAPH_KEY_EXCLUDE_CONTROLLERS_DEFAULT

    - #### GRAPH_KEY_TITLE

          public static final java.lang.String GRAPH_KEY_TITLE

      See Also:
        Constant Field Values

    - #### GRAPH_KEY_TITLE_DEFAULT

          public static final java.lang.String GRAPH_KEY_TITLE_DEFAULT

      See Also:
        Constant Field Values

    - #### EXPORTER_KEY_FILTERS_ONLY_SAMPLE_SERIES

          public static final java.lang.String EXPORTER_KEY_FILTERS_ONLY_SAMPLE_SERIES

      See Also:
        Constant Field Values

    - #### EXPORTER_KEY_FILTERS_ONLY_SAMPLE_SERIES_DEFAULT

          public static final java.lang.Boolean EXPORTER_KEY_FILTERS_ONLY_SAMPLE_SERIES_DEFAULT

    - #### EXPORTER_KEY_SERIES_FILTER

          public static final java.lang.String EXPORTER_KEY_SERIES_FILTER

      See Also:
        Constant Field Values

    - #### EXPORTER_KEY_SERIES_FILTER_DEFAULT

          public static final java.lang.String EXPORTER_KEY_SERIES_FILTER_DEFAULT

      See Also:
        Constant Field Values

    - #### EXPORTER_KEY_SHOW_CONTROLLERS_ONLY

          public static final java.lang.String EXPORTER_KEY_SHOW_CONTROLLERS_ONLY

      See Also:
        Constant Field Values

    - #### EXPORTER_KEY_SHOW_CONTROLLERS_ONLY_DEFAULT

          public static final java.lang.Boolean EXPORTER_KEY_SHOW_CONTROLLERS_ONLY_DEFAULT

    - #### EXPORTER_KEY_GRAPH_EXTRA_OPTIONS

          public static final java.lang.String EXPORTER_KEY_GRAPH_EXTRA_OPTIONS

      See Also:
        Constant Field Values

    - #### SUBCONF_KEY_CLASSNAME

          public static final java.lang.String SUBCONF_KEY_CLASSNAME

      See Also:
        Constant Field Values

    - #### SUBCONF_KEY_PROPERTY

          public static final java.lang.String SUBCONF_KEY_PROPERTY

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### ReportGeneratorConfiguration

          public ReportGeneratorConfiguration()

  - ### Method Detail

    - #### getSampleFilter

          public final java.lang.String getSampleFilter()

      Gets the overall sample filter.
      Returns:
        the overall sample filter

    - #### setSampleFilter

          public final void setSampleFilter(java.lang.String sampleFilter)

      Sets the overall sample filter.
      Parameters:
        `sampleFilter` - the new overall sample filter

    - #### getTempDirectory

          public final java.io.File getTempDirectory()

      Gets the temporary directory.
      Returns:
        the temporary directory

    - #### setTempDirectory

          public final void setTempDirectory(java.io.File tempDirectory)

      Sets the temporary directory.
      Parameters:
        `tempDirectory` - the temporary directory to set

    - #### getApdexSatisfiedThreshold

          public final long getApdexSatisfiedThreshold()

      Gets the apdex satisfied threshold.
      Returns:
        the apdex satisfied threshold

    - #### setApdexSatisfiedThreshold

          public final void setApdexSatisfiedThreshold(long apdexSatisfiedThreshold)

      Sets the apdex satisfied threshold.
      Parameters:
        `apdexSatisfiedThreshold` - the apdex satisfied threshold to set

    - #### getApdexToleratedThreshold

          public final long getApdexToleratedThreshold()

      Gets the apdex tolerated threshold.
      Returns:
        the apdex tolerated threshold

    - #### setApdexToleratedThreshold

          public final void setApdexToleratedThreshold(long apdexToleratedThreshold)

      Sets the apdex tolerated threshold.
      Parameters:
        `apdexToleratedThreshold` - the apdex tolerated threshold to set

    - #### getApdexPerTransaction

          public java.util.Map<java.lang.String,java.lang.Long[]> getApdexPerTransaction()

      Gets the apdex per transaction map
      Returns:
        the apdex per transaction map

    - #### setApdexPerTransaction

          public void setApdexPerTransaction(java.util.Map<java.lang.String,java.lang.Long[]> apdexPerTransaction)

      Sets the apdex per transaction map.
      Parameters:
        `apdexPerTransaction` - a map containing thresholds for one or more samples

    - #### getExportConfigurations

          public final java.util.Map<java.lang.String,ExporterConfiguration> getExportConfigurations()

      Gets the export configurations.
      Returns:
        the export configurations

    - #### getGraphConfigurations

          public final java.util.Map<java.lang.String,GraphConfiguration> getGraphConfigurations()

      Gets the graph configurations.
      Returns:
        the graph configurations

    - #### getSubConfigurationPropertyPrefix

          public static java.lang.String getSubConfigurationPropertyPrefix(java.lang.String keyPrefix,
                                                                           java.lang.String subConfId)

      Gets the sub configuration property prefix from the specified key prefix and sub configuration identifier.
      Parameters:
        `keyPrefix` - the key prefix
        `subConfId` - the sub configuration identifier
      Returns:
        the sub configuration property prefix

    - #### getSubConfigurationPropertyKey

          public static java.lang.String getSubConfigurationPropertyKey(java.lang.String keyPrefix,
                                                                        java.lang.String subConfId,
                                                                        java.lang.String propertyName)

      Gets the sub configuration property key from the specified key prefix, sub configuration identifier and property name.
      Parameters:
        `keyPrefix` - the key prefix
        `subConfId` - the sub configuration identifier
        `propertyName` - the property name
      Returns:
        the sub configuration property key

    - #### getExporterPropertyKey

          public static java.lang.String getExporterPropertyKey(java.lang.String exporterId,
                                                                java.lang.String propertyName)

      Gets the exporter property key from the specified identifier and property name.
      Parameters:
        `exporterId` - the exporter identifier
        `propertyName` - the property name
      Returns:
        the exporter property key

    - #### getGraphPropertyKey

          public static java.lang.String getGraphPropertyKey(java.lang.String graphId,
                                                             java.lang.String propertyName)

      Gets the graph property key from the specified identifier and property name.
      Parameters:
        `graphId` - the graph identifier
        `propertyName` - the property name
      Returns:
        the graph property key

    - #### loadFromProperties

          public static ReportGeneratorConfiguration loadFromProperties(java.util.Properties properties)
                                                                 throws ConfigurationException

      Load a configuration from the specified properties.
      Parameters:
        `properties` - the properties
      Returns:
        the report generator configuration
      Throws:
        `ConfigurationException` - when mandatory properties are missing

    - #### getApdexPerTransactionParts

          public static java.util.Map<java.lang.String,java.lang.Long[]> getApdexPerTransactionParts(java.lang.String apdexPerTransaction)

      Parses a string coming from properties to fill a map containing sample names as keys and an array of 2 longs [satisfied, tolerated] as values. The sample name can be a regex supplied by the user.
      Parameters:
        `apdexPerTransaction` - the string coming from properties
      Returns:
        `Map` containing for each sample name or sample name regex an array of Long corresponding to satisfied and tolerated apdex thresholds.

    - #### getReportTitle

          public java.lang.String getReportTitle()

      Returns:
        the reportTitle

    - #### setReportTitle

          public void setReportTitle(java.lang.String reportTitle)

      Parameters:
        `reportTitle` - the reportTitle to set

    - #### getFilteredSamplesPattern

          public java.util.regex.Pattern getFilteredSamplesPattern()

      Returns:
        the filteredSamplesPattern

    - #### getStartDate

          public java.util.Date getStartDate()

      Returns:
        the start date to use to generate the report

    - #### setStartDate

          public void setStartDate(java.util.Date startDate)

      Parameters:
        `startDate` - the start date to use to generate the report

    - #### getEndDate

          public java.util.Date getEndDate()

      Returns:
        the end date to use to generate the report

    - #### setEndDate

          public void setEndDate(java.util.Date endDate)

      Parameters:
        `endDate` - the end date to use to generate the report

    - #### isIgnoreTCFromTop5ErrorsBySampler

          public boolean isIgnoreTCFromTop5ErrorsBySampler()

      Returns:
        the ignoreTCFromTop5ErrorsBySampler

    - #### setIgnoreTCFromTop5ErrorsBySampler

          public void setIgnoreTCFromTop5ErrorsBySampler(boolean ignoreTCFromTop5ErrorsBySampler)

      Parameters:
        `ignoreTCFromTop5ErrorsBySampler` - the ignoreTCFromTop5ErrorsBySampler to set

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