Package org.apache.jmeter.samplers
Class BatchSampleSender
- java.lang.Object
-
- org.apache.jmeter.samplers.AbstractSampleSender
-
- org.apache.jmeter.samplers.BatchSampleSender
-
- All Implemented Interfaces:
Serializable
,SampleSender
public class BatchSampleSender extends AbstractSampleSender implements Serializable
Implements batch reporting for remote testing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description BatchSampleSender()
Deprecated.only for use by test codeprotected
BatchSampleSender(RemoteSampleListener listener)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RemoteSampleListener
getListener()
protected List<SampleEvent>
getSampleStore()
void
sampleOccurred(SampleEvent e)
Stores sample events untill either a time or sample threshold is breached.void
testEnded(String host)
Checks if any sample events are still present in the sampleStore and sends them to the listener.-
Methods inherited from class org.apache.jmeter.samplers.AbstractSampleSender
isClientConfigured, testEnded
-
-
-
-
Constructor Detail
-
BatchSampleSender
@Deprecated public BatchSampleSender()
Deprecated.only for use by test code
-
BatchSampleSender
protected BatchSampleSender(RemoteSampleListener listener)
Constructor- Parameters:
listener
- that the List of sample events will be sent to.
-
-
Method Detail
-
getListener
protected RemoteSampleListener getListener()
- Returns:
- the listener
-
getSampleStore
protected List<SampleEvent> getSampleStore()
- Returns:
- the sampleStore
-
testEnded
public void testEnded(String host)
Checks if any sample events are still present in the sampleStore and sends them to the listener. Informs the listener of the testended.- Specified by:
testEnded
in interfaceSampleSender
- Parameters:
host
- the host that the test has ended on.
-
sampleOccurred
public void sampleOccurred(SampleEvent e)
Stores sample events untill either a time or sample threshold is breached. Both thresholds are reset if one fires. If only one threshold is set it becomes the only value checked against. When a threhold is breached the list of sample events is sent to a listener where the event are fired locally.- Specified by:
sampleOccurred
in interfaceSampleSender
- Parameters:
e
- a Sample Event
-
-