Package org.apache.jmeter.threads
Class SamplePackage
-
- All Implemented Interfaces:
public class SamplePackage
Packages methods related to sample handling. A SamplePackage contains all elements associated to a Sampler:
- SampleListener(s)
- Timer(s)
- Assertion(s)
- PreProcessor(s)
- PostProcessor(s)
- ConfigTestElement(s)
- Controller(s)
-
-
Field Summary
Fields Modifier and Type Field Description public final List<SampleListener>
sampleListeners
public final List<Timer>
timers
public final List<Assertion>
assertions
public final List<PostProcessor>
postProcessors
public final List<PreProcessor>
preProcessors
public final List<ConfigTestElement>
configs
public Sampler
sampler
-
Constructor Summary
Constructors Constructor Description SamplePackage(List<ConfigTestElement> configs, List<SampleListener> listeners, List<Timer> timers, List<Assertion> assertions, List<PostProcessor> postProcessors, List<PreProcessor> preProcessors, List<Controller> controllers)
-
Method Summary
Modifier and Type Method Description List<SampleListener>
getSampleListeners()
List<Timer>
getTimers()
List<Assertion>
getAssertions()
List<PostProcessor>
getPostProcessors()
List<PreProcessor>
getPreProcessors()
Returns the preProcessors. List<ConfigTestElement>
getConfigs()
Returns the configs. Sampler
getSampler()
void
setSampler(Sampler s)
void
setRunningVersion(boolean running)
Make the SamplePackage the running version, or make it no longer the running version. void
recoverRunningVersion()
Recover each member of SamplePackage to the state before the call of setRunningVersion(true) void
addSampleListener(SampleListener listener)
Add Sample Listener void
addPostProcessor(PostProcessor ex)
Add Post processor void
addPreProcessor(PreProcessor pre)
Add Pre processor void
addTimer(Timer timer)
Add Timer void
addAssertion(Assertion asser)
Add Assertion -
-
Constructor Detail
-
SamplePackage
SamplePackage(List<ConfigTestElement> configs, List<SampleListener> listeners, List<Timer> timers, List<Assertion> assertions, List<PostProcessor> postProcessors, List<PreProcessor> preProcessors, List<Controller> controllers)
-
-
Method Detail
-
getSampleListeners
List<SampleListener> getSampleListeners()
- Returns:
List of SampleListeners
-
getAssertions
List<Assertion> getAssertions()
- Returns:
List of Assertion
-
getPostProcessors
List<PostProcessor> getPostProcessors()
- Returns:
List of PostProcessors
-
getPreProcessors
List<PreProcessor> getPreProcessors()
Returns the preProcessors.
- Returns:
List of PreProcessor
-
getConfigs
List<ConfigTestElement> getConfigs()
Returns the configs.
- Returns:
List of ConfigTestElement
-
getSampler
Sampler getSampler()
- Returns:
-
setSampler
void setSampler(Sampler s)
- Parameters:
s
- Sampler
-
setRunningVersion
void setRunningVersion(boolean running)
Make the SamplePackage the running version, or make it no longer the running version. This tells to each element of the SamplePackage that it's current state must be retrievable by a call to recoverRunningVersion().
- Parameters:
running
- boolean
-
recoverRunningVersion
void recoverRunningVersion()
Recover each member of SamplePackage to the state before the call of setRunningVersion(true)
-
addSampleListener
void addSampleListener(SampleListener listener)
Add Sample Listener
- Parameters:
listener
- SampleListener
-
addPostProcessor
void addPostProcessor(PostProcessor ex)
Add Post processor
- Parameters:
ex
- PostProcessor
-
addPreProcessor
void addPreProcessor(PreProcessor pre)
Add Pre processor
- Parameters:
pre
- PreProcessor
-
addAssertion
void addAssertion(Assertion asser)
Add Assertion
- Parameters:
asser
- Assertion
-
-
-
-