org.apache.jmeter.samplers
public class SampleEvent extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
HOSTNAME |
static String |
SAMPLE_VARIABLES |
Constructor and Description |
---|
SampleEvent() |
SampleEvent(SampleResult result,
String threadGroup)
Creates SampleEvent without saving any variables.
|
SampleEvent(SampleResult result,
String threadGroup,
JMeterVariables jmvars)
Contructor used for normal samples, saves variable values if any are defined.
|
SampleEvent(SampleResult result,
String threadGroup,
JMeterVariables jmvars,
boolean isTransactionSampleEvent) |
SampleEvent(SampleResult result,
String threadGroup,
String hostname)
Only intended for use when loading results from a file.
|
Modifier and Type | Method and Description |
---|---|
String |
getHostname() |
SampleResult |
getResult() |
String |
getThreadGroup() |
static int |
getVarCount()
Return the number of variables defined
|
static String |
getVarName(int i)
Get the nth variable name (zero-based)
|
String |
getVarValue(int i)
Get the nth variable value (zero-based)
|
boolean |
isTransactionSampleEvent() |
public static final String SAMPLE_VARIABLES
public static final String HOSTNAME
public SampleEvent()
public SampleEvent(SampleResult result, String threadGroup)
result
- SampleResultthreadGroup
- namepublic SampleEvent(SampleResult result, String threadGroup, JMeterVariables jmvars)
result
- threadGroup
- namejmvars
- Jmeter variablespublic SampleEvent(SampleResult result, String threadGroup, String hostname)
result
- threadGroup
- hostname
- public SampleEvent(SampleResult result, String threadGroup, JMeterVariables jmvars, boolean isTransactionSampleEvent)
result
- threadGroup
- jmvars
- isTransactionSampleEvent
- public static int getVarCount()
public static String getVarName(int i)
public String getVarValue(int i)
public SampleResult getResult()
public String getThreadGroup()
public String getHostname()
public boolean isTransactionSampleEvent()
Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.