Method from org.apache.jmeter.samplers.SampleSaveConfiguration Detail: |
public int assertionsResultsToSave() {
return assertionsResultsToSave;
}
|
public Object clone() {
try {
SampleSaveConfiguration clone = (SampleSaveConfiguration)super.clone();
if(this.formatter != null) {
clone.formatter = (SimpleDateFormat)this.formatter.clone();
}
return clone;
}
catch(CloneNotSupportedException e) {
throw new RuntimeException("Should not happen",e);
}
}
|
public boolean equals(Object obj) {
if(this == obj) {
return true;
}
if((obj == null) || (obj.getClass() != this.getClass())) {
return false;
}
// We know we are comparing to another SampleSaveConfiguration
SampleSaveConfiguration s = (SampleSaveConfiguration)obj;
boolean primitiveValues = s.time == time &&
s.latency == latency &&
s.timestamp == timestamp &&
s.success == success &&
s.label == label &&
s.code == code &&
s.message == message &&
s.threadName == threadName &&
s.dataType == dataType &&
s.encoding == encoding &&
s.assertions == assertions &&
s.subresults == subresults &&
s.responseData == responseData &&
s.samplerData == samplerData &&
s.xml == xml &&
s.fieldNames == fieldNames &&
s.responseHeaders == responseHeaders &&
s.requestHeaders == requestHeaders &&
s.assertionsResultsToSave == assertionsResultsToSave &&
s.saveAssertionResultsFailureMessage == saveAssertionResultsFailureMessage &&
s.printMilliseconds == printMilliseconds &&
s.responseDataOnError == responseDataOnError &&
s.url == url &&
s.bytes == bytes &&
s.fileName == fileName &&
s.hostname == hostname &&
s.sampleCount == sampleCount &&
s.threadCounts == threadCounts;
boolean stringValues = false;
if(primitiveValues) {
stringValues = s.delimiter == delimiter || (delimiter != null && delimiter.equals(s.delimiter));
}
boolean complexValues = false;
if(primitiveValues && stringValues) {
complexValues = s.formatter == formatter || (formatter != null && formatter.equals(s.formatter));
}
return primitiveValues && stringValues && complexValues;
}
|
public DateFormat formatter() {
return formatter;
}
|
public String getDelimiter() {
return delimiter;
}
|
public int getVarCount() {
// Only for use by CSVSaveService
return varCount;
}
|
public String getXmlPi() {
return JMeterUtils.getJMeterProperties().getProperty(XML_PI, ""); // Defaults to empty;
}
|
public int hashCode() {
int hash = 7;
hash = 31 * hash + (time ? 1 : 0);
hash = 31 * hash + (latency ? 1 : 0);
hash = 31 * hash + (timestamp ? 1 : 0);
hash = 31 * hash + (success ? 1 : 0);
hash = 31 * hash + (label ? 1 : 0);
hash = 31 * hash + (code ? 1 : 0);
hash = 31 * hash + (message ? 1 : 0);
hash = 31 * hash + (threadName ? 1 : 0);
hash = 31 * hash + (dataType ? 1 : 0);
hash = 31 * hash + (encoding ? 1 : 0);
hash = 31 * hash + (assertions ? 1 : 0);
hash = 31 * hash + (subresults ? 1 : 0);
hash = 31 * hash + (responseData ? 1 : 0);
hash = 31 * hash + (samplerData ? 1 : 0);
hash = 31 * hash + (xml ? 1 : 0);
hash = 31 * hash + (fieldNames ? 1 : 0);
hash = 31 * hash + (responseHeaders ? 1 : 0);
hash = 31 * hash + (requestHeaders ? 1 : 0);
hash = 31 * hash + assertionsResultsToSave;
hash = 31 * hash + (saveAssertionResultsFailureMessage ? 1 : 0);
hash = 31 * hash + (printMilliseconds ? 1 : 0);
hash = 31 * hash + (responseDataOnError ? 1 : 0);
hash = 31 * hash + (url ? 1 : 0);
hash = 31 * hash + (bytes ? 1 : 0);
hash = 31 * hash + (fileName ? 1 : 0);
hash = 31 * hash + (hostname ? 1 : 0);
hash = 31 * hash + (threadCounts ? 1 : 0);
hash = 31 * hash + (delimiter != null ? delimiter.hashCode() : 0);
hash = 31 * hash + (formatter != null ? formatter.hashCode() : 0);
hash = 31 * hash + (sampleCount ? 1 : 0);
return hash;
}
|
public boolean printMilliseconds() {
return printMilliseconds;
}
|
public boolean saveAsXml() {
return xml;
}
|
public boolean saveAssertionResultsFailureMessage() {
return saveAssertionResultsFailureMessage;
}
|
public boolean saveAssertions() {
return assertions;
}
|
public boolean saveBytes() {
return bytes;
}
|
public boolean saveCode() {
return code;
}
|
public boolean saveDataType() {
return dataType;
}
|
public boolean saveEncoding() {
return encoding;
}
|
public boolean saveFieldNames() {
return fieldNames;
}
|
public boolean saveFileName() {
return fileName;
}
|
public boolean saveHostname() {
return hostname;
}
|
public boolean saveLabel() {
return label;
}
|
public boolean saveLatency() {
return latency;
}
|
public boolean saveMessage() {
return message;
}
|
public boolean saveRequestHeaders() {
return requestHeaders;
}
|
public boolean saveResponseData() {
return responseData;
}
|
public boolean saveResponseData(SampleResult res) {
return responseData || TestPlan.getFunctionalMode() || (responseDataOnError && !res.isSuccessful());
}
|
public boolean saveResponseHeaders() {
return responseHeaders;
}
|
public boolean saveSampleCount() {
return sampleCount;
}
|
public boolean saveSamplerData() {
return samplerData;
}
|
public boolean saveSamplerData(SampleResult res) {
return samplerData || TestPlan.getFunctionalMode() // as per 2.0 branch
|| (responseDataOnError && !res.isSuccessful());
}
|
public boolean saveSubresults() {
return subresults;
}
|
public boolean saveSuccess() {
return success;
}
|
public boolean saveThreadCounts() {
return threadCounts;
}
|
public boolean saveThreadName() {
return threadName;
}
|
public boolean saveTime() {
return time;
}
|
public boolean saveTimestamp() {
return timestamp;
}
|
public boolean saveUrl() {
return url;
}
|
public void setAsXml(boolean xml) {
this.xml = xml;
}
|
public void setAssertionResultsFailureMessage(boolean b) {
saveAssertionResultsFailureMessage = b;
}
|
public void setAssertions(boolean assertions) {
this.assertions = assertions;
}
|
public void setBytes(boolean save) {
this.bytes = save;
}
|
public void setCode(boolean code) {
this.code = code;
}
|
public void setDataType(boolean dataType) {
this.dataType = dataType;
}
|
public void setDefaultDelimiter() {
delimiter=_delimiter;
}
|
public void setDefaultTimeStampFormat() {
printMilliseconds=_printMilliseconds;
formatter=_formatter;
}
|
public void setDelimiter(String delim) {
delimiter=delim;
}
|
public void setEncoding(boolean encoding) {
this.encoding = encoding;
}
|
public void setFieldNames(boolean printFieldNames) {
this.fieldNames = printFieldNames;
}
|
public void setFileName(boolean save) {
this.fileName = save;
}
|
public void setFormatter(DateFormat fmt) {
printMilliseconds = (fmt == null); // maintain relationship
formatter = fmt;
}
Only intended for use by OldSaveService (and test cases) |
public void setHostname(boolean save) {
hostname = save;
}
|
public void setLabel(boolean label) {
this.label = label;
}
|
public void setLatency(boolean latency) {
this.latency = latency;
}
|
public void setMessage(boolean message) {
this.message = message;
}
|
public void setRequestHeaders(boolean r) {
requestHeaders = r;
}
|
public void setResponseData(boolean responseData) {
this.responseData = responseData;
}
|
public void setResponseHeaders(boolean r) {
responseHeaders = r;
}
|
public void setSampleCount(boolean save) {
this.sampleCount = save;
}
|
public void setSamplerData(boolean samplerData) {
this.samplerData = samplerData;
}
|
public void setSubresults(boolean subresults) {
this.subresults = subresults;
}
|
public void setSuccess(boolean success) {
this.success = success;
}
|
public void setThreadCounts(boolean save) {
this.threadCounts = save;
}
|
public void setThreadName(boolean threadName) {
this.threadName = threadName;
}
|
public void setTime(boolean time) {
this.time = time;
}
|
public void setTimestamp(boolean timestamp) {
this.timestamp = timestamp;
}
|
public void setUrl(boolean save) {
this.url = save;
}
|
public void setVarCount(int varCount) {
// Only for use by CSVSaveService
this.varCount = varCount;
}
|
public static SampleSaveConfiguration staticConfig() {
return _static;
}
|