org.apache.jmeter.samplers
public class: SampleEvent [javadoc |
source]
java.lang.Object
org.apache.jmeter.samplers.SampleEvent
All Implemented Interfaces:
Serializable
Packages information regarding the target of a sample event, such as the
result from that event and the thread group it ran in.
Field Summary |
---|
public static final String | SAMPLE_VARIABLES | |
public static final String | HOSTNAME | |
Constructor: |
public SampleEvent() {
this(null, null);
}
|
public SampleEvent(SampleResult result,
String threadGroup) {
this.result = result;
this.threadGroup = threadGroup;
this.hostname = HOSTNAME;
values = new String[variableNames.length];
}
Creates SampleEvent without saving any variables.
Use by Proxy and StatisticalSampleSender. Parameters:
result - SampleResult
threadGroup - name
|
public SampleEvent(SampleResult result,
String threadGroup,
JMeterVariables jmvars) {
this.result = result;
this.threadGroup = threadGroup;
this.hostname = HOSTNAME;
values = new String[variableNames.length];
saveVars(jmvars);
}
Contructor used for normal samples, saves variable values if any are defined. Parameters:
result -
threadGroup - name
jmvars - Jmeter variables
|
public SampleEvent(SampleResult result,
String threadGroup,
String hostname) {
this.result = result;
this.threadGroup = threadGroup;
this.hostname = hostname;
values = new String[variableNames.length];
}
Only intended for use when loading results from a file. Parameters:
result -
threadGroup -
hostname -
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |