public class BatchSampleSender extends AbstractSampleSender implements Serializable
Modifier | Constructor and Description |
---|---|
|
BatchSampleSender()
Deprecated.
only for use by test code
|
protected |
BatchSampleSender(RemoteSampleListener listener)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected RemoteSampleListener |
getListener() |
protected List<SampleEvent> |
getSampleStore() |
void |
sampleOccurred(SampleEvent e)
Stores sample events until 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.
|
isClientConfigured, testEnded
@Deprecated public BatchSampleSender()
protected BatchSampleSender(RemoteSampleListener listener)
listener
- that the List of sample events will be sent to.protected RemoteSampleListener getListener()
protected List<SampleEvent> getSampleStore()
public void testEnded(String host)
testEnded
in interface SampleSender
host
- the host that the test has ended on.public void sampleOccurred(SampleEvent e)
sampleOccurred
in interface SampleSender
e
- a Sample EventCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.