Package org.apache.jmeter.threads
Class SamplePackage
java.lang.Object
org.apache.jmeter.threads.SamplePackage
Packages methods related to sample handling.
A SamplePackage contains all elements associated to a Sampler:
A SamplePackage contains all elements associated to a Sampler:
- SampleListener(s)
- Timer(s)
- Assertion(s)
- PreProcessor(s)
- PostProcessor(s)
- ConfigTestElement(s)
- Controller(s)
-
Constructor Summary
ConstructorDescriptionSamplePackage
(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 TypeMethodDescriptionvoid
addAssertion
(Assertion asser) Add Assertionvoid
Add Post processorvoid
Add Pre processorvoid
addSampleListener
(SampleListener listener) Add Sample Listenervoid
Add TimerReturns the configs.Returns the preProcessors.void
Recover each member of SamplePackage to the state before the call of setRunningVersion(true)void
setRunningVersion
(boolean running) Make the SamplePackage the running version, or make it no longer the running version.void
-
Constructor Details
-
SamplePackage
public SamplePackage(List<ConfigTestElement> configs, List<SampleListener> listeners, List<Timer> timers, List<Assertion> assertions, List<PostProcessor> postProcessors, List<PreProcessor> preProcessors, List<Controller> controllers)
-
-
Method Details
-
setRunningVersion
public 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- See Also:
-
TestElement.setRunningVersion(boolean)
-
recoverRunningVersion
public void recoverRunningVersion()Recover each member of SamplePackage to the state before the call of setRunningVersion(true)- See Also:
-
TestElement.recoverRunningVersion()
-
getSampleListeners
- Returns:
- List of
SampleListener
s
-
addSampleListener
Add Sample Listener- Parameters:
listener
-SampleListener
-
getTimers
- Returns:
- List of
Timer
s
-
addPostProcessor
Add Post processor- Parameters:
ex
-PostProcessor
-
addPreProcessor
Add Pre processor- Parameters:
pre
-PreProcessor
-
addTimer
Add Timer- Parameters:
timer
-Timer
-
addAssertion
Add Assertion- Parameters:
asser
-Assertion
-
getAssertions
- Returns:
- List of
Assertion
-
getPostProcessors
- Returns:
- List of
PostProcessor
s
-
getSampler
- Returns:
Sampler
-
setSampler
- Parameters:
s
-Sampler
-
getPreProcessors
Returns the preProcessors.- Returns:
- List of
PreProcessor
-
getConfigs
Returns the configs.- Returns:
- List of
ConfigTestElement
-