|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.samplers.SampleEvent
public class SampleEvent
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 | |
---|---|
static String |
HOSTNAME
|
static String |
SAMPLE_VARIABLES
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SAMPLE_VARIABLES
public static final String HOSTNAME
Constructor Detail |
---|
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
- Method Detail |
---|
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()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |