Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache JMeter
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.jmeter.samplers
Class SampleEvent

    java.lang.Object
      org.apache.jmeter.samplers.SampleEvent

All Implemented Interfaces:
  Serializable

    public class SampleEvent

extends Object
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.

See Also:
  Serialized Form

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

### SAMPLE_VARIABLES

    public static final String SAMPLE_VARIABLES

See Also:
  Constant Field Values

### HOSTNAME

    public static final String HOSTNAME

Constructor Detail

### SampleEvent

    public SampleEvent()

### SampleEvent

    public SampleEvent(SampleResult result,
                       String threadGroup)

  Creates SampleEvent without saving any variables. Use by Proxy and StatisticalSampleSender.

  Parameters:
    `result` - SampleResult
    `threadGroup` - name

### SampleEvent

    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

### SampleEvent

    public SampleEvent(SampleResult result,
                       String threadGroup,
                       String hostname)

  Only intended for use when loading results from a file.

  Parameters:
    `result` -
    `threadGroup` -
    `hostname` -

### SampleEvent

    public SampleEvent(SampleResult result,
                       String threadGroup,
                       JMeterVariables jmvars,
                       boolean isTransactionSampleEvent)

Parameters:
  `result` -
  `threadGroup` -
  `jmvars` -
  `isTransactionSampleEvent` -

Method Detail

### 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)

### getResult

    public SampleResult getResult()

### getThreadGroup

    public String getThreadGroup()

### getHostname

    public String getHostname()

### isTransactionSampleEvent

    public boolean isTransactionSampleEvent()

  Returns:
    the isTransactionSampleEvent

Overview | Package | Class | Tree | Deprecated | Index | Help
| Apache JMeter
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.