org.apache.jmeter.samplers

## Class SampleSaveConfiguration

- java.lang.Object
- - org.apache.jmeter.samplers.SampleSaveConfiguration

- All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

      public class SampleSaveConfiguration
      extends java.lang.Object
      implements java.lang.Cloneable, java.io.Serializable

  Holds details of which sample attributes to save. The pop-up dialogue for this is created by the class SavePropertyDialog, which assumes:

  For each field XXX

  - methods have the signature "boolean saveXXX()"
  - a corresponding "void setXXX(boolean)" method
  - messages.properties contains the key save_XXX
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `ASSERTION_RESULTS_FAILURE_MESSAGE_PROP` The name of the property indicating which assertion results should be saved.
    `static java.lang.String` | `DEFAULT_DELIMITER`
    `static java.lang.String` | `DEFAULT_DELIMITER_PROP` The name of the property indicating which delimiter should be used when saving in a delimited values format.
    `static java.lang.String` | `MILLISECONDS` A properties file indicator for milliseconds
    `static java.lang.String` | `NONE` A properties file indicator for none
    `static int` | `SAVE_ALL_ASSERTIONS`
    `static java.util.List<java.lang.String>` | `SAVE_CONFIG_NAMES` List of saveXXX/setXXX(boolean) methods which is used to build the Sample Result Save Configuration dialog.
    `static int` | `SAVE_FIRST_ASSERTION`
    `static int` | `SAVE_NO_ASSERTIONS`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SampleSaveConfiguration()`
    `SampleSaveConfiguration(boolean value)` Alternate constructor for use by CsvSaveService

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `assertionsResultsToSave()`
    `java.lang.Object` | `clone()`
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getDelimiter()`
    `static java.lang.String` | `getterName(java.lang.String configName)` Convert a config name to the method name of the getter.
    `int` | `getVarCount()`
    `java.lang.String` | `getXmlPi()`
    `int` | `hashCode()`
    `boolean` | `printMilliseconds()`
    `boolean` | `saveAssertionResultsFailureMessage()`
    `boolean` | `saveAssertions()`
    `boolean` | `saveAsXml()`
    `boolean` | `saveBytes()`
    `boolean` | `saveCode()`
    `boolean` | `saveConnectTime()`
    `boolean` | `saveDataType()`
    `boolean` | `saveEncoding()`
    `boolean` | `saveFieldNames()`
    `boolean` | `saveFileName()`
    `boolean` | `saveHostname()`
    `boolean` | `saveIdleTime()`
    `boolean` | `saveLabel()`
    `boolean` | `saveLatency()`
    `boolean` | `saveMessage()`
    `boolean` | `saveRequestHeaders()`
    `boolean` | `saveResponseData()`
    `boolean` | `saveResponseData(SampleResult res)`
    `boolean` | `saveResponseHeaders()`
    `boolean` | `saveSampleCount()`
    `boolean` | `saveSamplerData()`
    `boolean` | `saveSamplerData(SampleResult res)`
    `boolean` | `saveSentBytes()`
    `boolean` | `saveSubresults()`
    `boolean` | `saveSuccess()`
    `boolean` | `saveThreadCounts()`
    `boolean` | `saveThreadName()`
    `boolean` | `saveTime()`
    `boolean` | `saveTimestamp()`
    `boolean` | `saveUrl()`
    `void` | `setAssertionResultsFailureMessage(boolean b)`
    `void` | `setAssertions(boolean assertions)`
    `void` | `setAsXml(boolean xml)`
    `void` | `setBytes(boolean save)`
    `void` | `setCode(boolean code)`
    `void` | `setConnectTime(boolean connectTime)`
    `void` | `setDataType(boolean dataType)`
    `void` | `setDateFormat(java.lang.String fmt)` Intended for use by CsvSaveService (and test cases)
    `void` | `setDefaultDelimiter()`
    `void` | `setDefaultTimeStampFormat()`
    `void` | `setDelimiter(java.lang.String delim)`
    `void` | `setEncoding(boolean encoding)`
    `void` | `setFieldNames(boolean printFieldNames)`
    `void` | `setFileName(boolean save)`
    `void` | `setHostname(boolean save)`
    `void` | `setIdleTime(boolean save)`
    `void` | `setLabel(boolean label)`
    `void` | `setLatency(boolean latency)`
    `void` | `setMessage(boolean message)`
    `void` | `setRequestHeaders(boolean r)`
    `void` | `setResponseData(boolean responseData)`
    `void` | `setResponseHeaders(boolean r)`
    `void` | `setSampleCount(boolean save)`
    `void` | `setSamplerData(boolean samplerData)`
    `void` | `setSentBytes(boolean save)`
    `void` | `setSubresults(boolean subresults)`
    `void` | `setSuccess(boolean success)`
    `static java.lang.String` | `setterName(java.lang.String configName)` Convert a config name to the method name of the setter The setter method requires a boolean parameter.
    `void` | `setThreadCounts(boolean save)`
    `void` | `setThreadName(boolean threadName)`
    `void` | `setTime(boolean time)`
    `void` | `setTimestamp(boolean timestamp)`
    `void` | `setUrl(boolean save)`
    `void` | `setVarCount(int varCount)`
    `static SampleSaveConfiguration` | `staticConfig()`
    `java.text.DateFormat` | `strictDateFormatter()`
    `org.apache.commons.lang3.time.FastDateFormat` | `threadSafeLenientFormatter()`

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

      `finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### MILLISECONDS

          public static final java.lang.String MILLISECONDS

      A properties file indicator for milliseconds. *
      See Also:
        Constant Field Values

    - #### NONE

          public static final java.lang.String NONE

      A properties file indicator for none. *
      See Also:
        Constant Field Values

    - #### ASSERTION_RESULTS_FAILURE_MESSAGE_PROP

          public static final java.lang.String ASSERTION_RESULTS_FAILURE_MESSAGE_PROP

      The name of the property indicating which assertion results should be saved.
      See Also:
        Constant Field Values

    - #### DEFAULT_DELIMITER_PROP

          public static final java.lang.String DEFAULT_DELIMITER_PROP

      The name of the property indicating which delimiter should be used when saving in a delimited values format.
      See Also:
        Constant Field Values

    - #### SAVE_NO_ASSERTIONS

          public static final int SAVE_NO_ASSERTIONS

      See Also:
        Constant Field Values

    - #### SAVE_FIRST_ASSERTION

          public static final int SAVE_FIRST_ASSERTION

      See Also:
        Constant Field Values

    - #### SAVE_ALL_ASSERTIONS

          public static final int SAVE_ALL_ASSERTIONS

      See Also:
        Constant Field Values

    - #### DEFAULT_DELIMITER

          public static final java.lang.String DEFAULT_DELIMITER

      See Also:
        Constant Field Values

    - #### SAVE_CONFIG_NAMES

          public static final java.util.List<java.lang.String> SAVE_CONFIG_NAMES

      List of saveXXX/setXXX(boolean) methods which is used to build the Sample Result Save Configuration dialog. New method names should be added at the end so that existing layouts are not affected.

  - ### Constructor Detail

    - #### SampleSaveConfiguration

          public SampleSaveConfiguration()

    - #### SampleSaveConfiguration

          public SampleSaveConfiguration(boolean value)

      Alternate constructor for use by CsvSaveService
      Parameters:
        `value` - initial setting for boolean fields used in Config dialogue

  - ### Method Detail

    - #### getVarCount

          public int getVarCount()

    - #### setVarCount

          public void setVarCount(int varCount)

    - #### staticConfig

          public static SampleSaveConfiguration staticConfig()

    - #### getterName

          public static final java.lang.String getterName(java.lang.String configName)

      Convert a config name to the method name of the getter. The getter method returns a boolean.
      Parameters:
        `configName` - the config name
      Returns:
        the getter method name

    - #### setterName

          public static final java.lang.String setterName(java.lang.String configName)

      Convert a config name to the method name of the setter The setter method requires a boolean parameter.
      Parameters:
        `configName` - the config name
      Returns:
        the setter method name

    - #### clone

          public java.lang.Object clone()

      Overrides:
        `clone` in class `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      Overrides:
        `equals` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### saveResponseHeaders

          public boolean saveResponseHeaders()

    - #### setResponseHeaders

          public void setResponseHeaders(boolean r)

    - #### saveRequestHeaders

          public boolean saveRequestHeaders()

    - #### setRequestHeaders

          public void setRequestHeaders(boolean r)

    - #### saveAssertions

          public boolean saveAssertions()

    - #### setAssertions

          public void setAssertions(boolean assertions)

    - #### saveCode

          public boolean saveCode()

    - #### setCode

          public void setCode(boolean code)

    - #### saveDataType

          public boolean saveDataType()

    - #### setDataType

          public void setDataType(boolean dataType)

    - #### saveEncoding

          public boolean saveEncoding()

    - #### setEncoding

          public void setEncoding(boolean encoding)

    - #### saveLabel

          public boolean saveLabel()

    - #### setLabel

          public void setLabel(boolean label)

    - #### saveLatency

          public boolean saveLatency()

    - #### setLatency

          public void setLatency(boolean latency)

    - #### saveConnectTime

          public boolean saveConnectTime()

    - #### setConnectTime

          public void setConnectTime(boolean connectTime)

    - #### saveMessage

          public boolean saveMessage()

    - #### setMessage

          public void setMessage(boolean message)

    - #### saveResponseData

          public boolean saveResponseData(SampleResult res)

    - #### saveResponseData

          public boolean saveResponseData()

    - #### setResponseData

          public void setResponseData(boolean responseData)

    - #### saveSamplerData

          public boolean saveSamplerData(SampleResult res)

    - #### saveSamplerData

          public boolean saveSamplerData()

    - #### setSamplerData

          public void setSamplerData(boolean samplerData)

    - #### saveSubresults

          public boolean saveSubresults()

    - #### setSubresults

          public void setSubresults(boolean subresults)

    - #### saveSuccess

          public boolean saveSuccess()

    - #### setSuccess

          public void setSuccess(boolean success)

    - #### saveThreadName

          public boolean saveThreadName()

    - #### setThreadName

          public void setThreadName(boolean threadName)

    - #### saveTime

          public boolean saveTime()

    - #### setTime

          public void setTime(boolean time)

    - #### saveTimestamp

          public boolean saveTimestamp()

    - #### setTimestamp

          public void setTimestamp(boolean timestamp)

    - #### saveAsXml

          public boolean saveAsXml()

    - #### setAsXml

          public void setAsXml(boolean xml)

    - #### saveFieldNames

          public boolean saveFieldNames()

    - #### setFieldNames

          public void setFieldNames(boolean printFieldNames)

    - #### saveUrl

          public boolean saveUrl()

    - #### setUrl

          public void setUrl(boolean save)

    - #### saveBytes

          public boolean saveBytes()

    - #### setBytes

          public void setBytes(boolean save)

    - #### saveSentBytes

          public boolean saveSentBytes()

    - #### setSentBytes

          public void setSentBytes(boolean save)

    - #### saveFileName

          public boolean saveFileName()

    - #### setFileName

          public void setFileName(boolean save)

    - #### saveAssertionResultsFailureMessage

          public boolean saveAssertionResultsFailureMessage()

    - #### setAssertionResultsFailureMessage

          public void setAssertionResultsFailureMessage(boolean b)

    - #### saveThreadCounts

          public boolean saveThreadCounts()

    - #### setThreadCounts

          public void setThreadCounts(boolean save)

    - #### saveSampleCount

          public boolean saveSampleCount()

    - #### setSampleCount

          public void setSampleCount(boolean save)

    - #### setDateFormat

          public void setDateFormat(java.lang.String fmt)

      Intended for use by CsvSaveService (and test cases)
      Parameters:
        `fmt` - format of the date to be saved. If `null` milliseconds since epoch will be printed

    - #### printMilliseconds

          public boolean printMilliseconds()

    - #### strictDateFormatter

          public java.text.DateFormat strictDateFormatter()

      Returns:
        `DateFormat` non lenient

    - #### threadSafeLenientFormatter

          public org.apache.commons.lang3.time.FastDateFormat threadSafeLenientFormatter()

      Returns:
        `FastDateFormat` Thread safe lenient formatter

    - #### assertionsResultsToSave

          public int assertionsResultsToSave()

    - #### getDelimiter

          public java.lang.String getDelimiter()

    - #### getXmlPi

          public java.lang.String getXmlPi()

    - #### setDelimiter

          public void setDelimiter(java.lang.String delim)

    - #### setDefaultDelimiter

          public void setDefaultDelimiter()

    - #### setDefaultTimeStampFormat

          public void setDefaultTimeStampFormat()

    - #### saveHostname

          public boolean saveHostname()

    - #### setHostname

          public void setHostname(boolean save)

    - #### saveIdleTime

          public boolean saveIdleTime()

    - #### setIdleTime

          public void setIdleTime(boolean save)

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