org.apache.jmeter.examples.sampler
Class ExampleSampler
- Cloneable, Sampler, Serializable, TestElement
public class ExampleSampler
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.
addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty |
DATA
public static final String DATA
ExampleSampler
public ExampleSampler()
getData
public String getData()
sample
public SampleResult sample(Entry e)
Obtains statistics about the given Entry, and packages the information
into a SampleResult.
- sample in interface Sampler
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.