Interface SampleSource
- All Superinterfaces:
- Runnable
- All Known Implementing Classes:
- AbstractSampleSource,- CsvFileSampleSource
The interface SampleSource represents a source of samples for sample consumers.
- Since:
- 3.0
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddSampleConsumer(SampleConsumer consumer) Add a sample consumer to this sample source.Gets the sample context.voidremoveSampleConsumer(SampleConsumer consumer) Remove a sample consumer from this sample source.voidsetSampleConsumers(List<SampleConsumer> consumers) Sets the specified sample consumers that will consume samples produced by this sample source.voidsetSampleContext(SampleContext sampleContext) Sets the sample context.
- 
Method Details- 
getSampleContextSampleContext getSampleContext()Gets the sample context.- Returns:
- the sampleContext
 
- 
setSampleContextSets the sample context.- Parameters:
- sampleContext- the sampleContext to set
 
- 
setSampleConsumersSets the specified sample consumers that will consume samples produced by this sample source.- Parameters:
- consumers- consumers to be set
 
- 
addSampleConsumerAdd a sample consumer to this sample source.- Parameters:
- consumer- consumer to be added
 
- 
removeSampleConsumerRemove a sample consumer from this sample source.- Parameters:
- consumer- consumer to be removed
 
 
-