public class SampleSaveConfiguration extends Object implements Cloneable, Serializable
For each field XXX
Modifier and Type | Field and Description |
---|---|
static String |
ASSERTION_RESULTS_FAILURE_MESSAGE_PROP
The name of the property indicating which assertion results should be
saved.
|
static String |
DEFAULT_DELIMITER |
static String |
DEFAULT_DELIMITER_PROP
The name of the property indicating which delimiter should be used when
saving in a delimited values format.
|
static String |
MILLISECONDS
A properties file indicator for milliseconds.
|
static String |
NONE
A properties file indicator for none.
|
static int |
SAVE_ALL_ASSERTIONS |
static List<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 and Description |
---|
SampleSaveConfiguration() |
SampleSaveConfiguration(boolean value)
Alternate constructor for use by CsvSaveService
|
Modifier and Type | Method and Description |
---|---|
int |
assertionsResultsToSave() |
Object |
clone() |
boolean |
equals(Object obj) |
String |
getDelimiter() |
static String |
getterName(String configName)
Convert a config name to the method name of the getter.
|
int |
getVarCount() |
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(String fmt)
Intended for use by CsvSaveService (and test cases)
|
void |
setDefaultDelimiter() |
void |
setDefaultTimeStampFormat() |
void |
setDelimiter(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 String |
setterName(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() |
DateFormat |
strictDateFormatter() |
org.apache.commons.lang3.time.FastDateFormat |
threadSafeLenientFormatter() |
public static final String MILLISECONDS
public static final String NONE
public static final String ASSERTION_RESULTS_FAILURE_MESSAGE_PROP
public static final String DEFAULT_DELIMITER_PROP
public static final int SAVE_NO_ASSERTIONS
public static final int SAVE_FIRST_ASSERTION
public static final int SAVE_ALL_ASSERTIONS
public static final String DEFAULT_DELIMITER
public SampleSaveConfiguration()
public SampleSaveConfiguration(boolean value)
value
- initial setting for boolean fields used in Config dialoguepublic int getVarCount()
public void setVarCount(int varCount)
public static SampleSaveConfiguration staticConfig()
public static final String getterName(String configName)
configName
- the config namepublic static final String setterName(String configName)
configName
- the config namepublic boolean saveResponseHeaders()
public void setResponseHeaders(boolean r)
public boolean saveRequestHeaders()
public void setRequestHeaders(boolean r)
public boolean saveAssertions()
public void setAssertions(boolean assertions)
public boolean saveCode()
public void setCode(boolean code)
public boolean saveDataType()
public void setDataType(boolean dataType)
public boolean saveEncoding()
public void setEncoding(boolean encoding)
public boolean saveLabel()
public void setLabel(boolean label)
public boolean saveLatency()
public void setLatency(boolean latency)
public boolean saveConnectTime()
public void setConnectTime(boolean connectTime)
public boolean saveMessage()
public void setMessage(boolean message)
public boolean saveResponseData(SampleResult res)
public boolean saveResponseData()
public void setResponseData(boolean responseData)
public boolean saveSamplerData(SampleResult res)
public boolean saveSamplerData()
public void setSamplerData(boolean samplerData)
public boolean saveSubresults()
public void setSubresults(boolean subresults)
public boolean saveSuccess()
public void setSuccess(boolean success)
public boolean saveThreadName()
public void setThreadName(boolean threadName)
public boolean saveTime()
public void setTime(boolean time)
public boolean saveTimestamp()
public void setTimestamp(boolean timestamp)
public boolean saveAsXml()
public void setAsXml(boolean xml)
public boolean saveFieldNames()
public void setFieldNames(boolean printFieldNames)
public boolean saveUrl()
public void setUrl(boolean save)
public boolean saveBytes()
public void setBytes(boolean save)
public boolean saveSentBytes()
public void setSentBytes(boolean save)
public boolean saveFileName()
public void setFileName(boolean save)
public boolean saveAssertionResultsFailureMessage()
public void setAssertionResultsFailureMessage(boolean b)
public boolean saveThreadCounts()
public void setThreadCounts(boolean save)
public boolean saveSampleCount()
public void setSampleCount(boolean save)
public void setDateFormat(String fmt)
fmt
- format of the date to be saved. If null
milliseconds since epoch will be printedpublic boolean printMilliseconds()
public DateFormat strictDateFormatter()
DateFormat
non lenientpublic org.apache.commons.lang3.time.FastDateFormat threadSafeLenientFormatter()
FastDateFormat
Thread safe lenient formatterpublic int assertionsResultsToSave()
public String getDelimiter()
public String getXmlPi()
public void setDelimiter(String delim)
public void setDefaultDelimiter()
public void setDefaultTimeStampFormat()
public boolean saveHostname()
public void setHostname(boolean save)
public boolean saveIdleTime()
public void setIdleTime(boolean save)
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.