org.apache.jmeter.samplers
Class SampleEvent
- Serializable
public class SampleEvent
implements Serializable
Packages information regarding the target of a sample event, such as the
result from that event and the thread group it ran in.
HOSTNAME
public static final String HOSTNAME
SAMPLE_VARIABLES
public static final String SAMPLE_VARIABLES
SampleEvent
public SampleEvent()
SampleEvent
public SampleEvent(SampleResult result,
String threadGroup)
Creates SampleEvent without saving any variables.
Use by Proxy and StatisticalSampleSender.
result
- SampleResultthreadGroup
- name
SampleEvent
public SampleEvent(SampleResult result,
String threadGroup,
String hostname)
Only intended for use when loading results from a file.
result
- threadGroup
- hostname
-
SampleEvent
public SampleEvent(SampleResult result,
String threadGroup,
JMeterVariables jmvars)
Contructor used for normal samples, saves variable values if any are defined.
result
- threadGroup
- namejmvars
- Jmeter variables
getHostname
public String getHostname()
getThreadGroup
public String getThreadGroup()
getVarCount
public static int getVarCount()
Return the number of variables defined
getVarName
public static String getVarName(int i)
Get the nth variable name (zero-based)
getVarValue
public String getVarValue(int i)
Get the nth variable value (zero-based)
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.