|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 java.lang.String |
HOSTNAME
|
static java.lang.String |
SAMPLE_VARIABLES
|
Constructor Summary | |
---|---|
SampleEvent()
|
|
SampleEvent(SampleResult result,
java.lang.String threadGroup)
Creates SampleEvent without saving any variables. |
|
SampleEvent(SampleResult result,
java.lang.String threadGroup,
JMeterVariables jmvars)
Contructor used for normal samples, saves variable values if any are defined. |
|
SampleEvent(SampleResult result,
java.lang.String threadGroup,
java.lang.String hostname)
Only intended for use when loading results from a file. |
Method Summary | |
---|---|
java.lang.String |
getHostname()
|
SampleResult |
getResult()
|
java.lang.String |
getThreadGroup()
|
static int |
getVarCount()
Return the number of variables defined |
static java.lang.String |
getVarName(int i)
Get the nth variable name (zero-based) |
java.lang.String |
getVarValue(int i)
Get the nth variable value (zero-based) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SAMPLE_VARIABLES
public static final java.lang.String HOSTNAME
Constructor Detail |
---|
public SampleEvent()
public SampleEvent(SampleResult result, java.lang.String threadGroup)
result
- SampleResultthreadGroup
- namepublic SampleEvent(SampleResult result, java.lang.String threadGroup, JMeterVariables jmvars)
result
- threadGroup
- namejmvars
- Jmeter variablespublic SampleEvent(SampleResult result, java.lang.String threadGroup, java.lang.String hostname)
result
- threadGroup
- hostname
- Method Detail |
---|
public static int getVarCount()
public static java.lang.String getVarName(int i)
public java.lang.String getVarValue(int i)
public SampleResult getResult()
public java.lang.String getThreadGroup()
public java.lang.String getHostname()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |