org.apache.jmeter.examples.sampler
Class ExampleSampler
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.examples.sampler.ExampleSampler
- All Implemented Interfaces:
- Cloneable, Sampler, Serializable, TestElement
- public class ExampleSampler
- extends AbstractSampler
Example Sampler (non-Bean version)
JMeter creates an instance of a sampler class for every
occurrence of the element in every thread.
[some additional copies may be created before the test run starts]
Thus each sampler is guaranteed to be called by a single thread -
there is no need to synchronize access to instance variables.
However, access to class fields must be synchronized.
- Version:
- $Revision: 1.1.2.1 $ $Date: 2004/05/24 23:20:39 $
- See Also:
- Serialized Form
Field Summary |
static String |
DATA
|
protected static org.apache.log.Logger |
log
|
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
addTestElement, canRemove, clear, clone, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse |
log
protected static org.apache.log.Logger log
DATA
public static final String DATA
- See Also:
- Constant Field Values
ExampleSampler
public ExampleSampler()
sample
public SampleResult sample(Entry e)
- Description copied from interface:
Sampler
- Obtains statistics about the given Entry, and packages the information
into a SampleResult.
getData
public String getData()
- Returns:
- the data for the sample
Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.