Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.samplers » [javadoc | source]
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() 
 public SampleEvent(SampleResult result,
    String threadGroup) 
    Creates SampleEvent without saving any variables. Use by Proxy and StatisticalSampleSender.
    Parameters:
    result - SampleResult
    threadGroup - name
 public SampleEvent(SampleResult result,
    String threadGroup,
    JMeterVariables 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) 
    Only intended for use when loading results from a file.
    Parameters:
    result -
    threadGroup -
    hostname -
Method from org.apache.jmeter.samplers.SampleEvent Summary:
getHostname,   getResult,   getThreadGroup,   getVarCount,   getVarName,   getVarValue
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jmeter.samplers.SampleEvent Detail:
 public String getHostname() 
 public SampleResult getResult() 
 public String getThreadGroup() 
 public static int getVarCount() 
    Return the number of variables defined
 public static String getVarName(int i) 
    Get the nth variable name (zero-based)
 public String getVarValue(int i) 
    Get the nth variable value (zero-based)