public abstract class AbstractSampleSource extends java.lang.Object implements SampleSource
Modifier | Constructor and Description |
---|---|
protected |
AbstractSampleSource()
Instantiates a new abstract sample source.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
addSampleConsumer(SampleConsumer consumer)
Add a sample consumer to this sample source.
|
SampleContext |
getSampleContext()
Gets the sample context.
|
abstract void |
removeSampleConsumer(SampleConsumer consumer)
Remove a sample consumer from this sample source.
|
abstract void |
run() |
abstract void |
setSampleConsumers(java.util.List<SampleConsumer> consumers)
Sets the specified sample consumers that will consume samples produced by
this sample source.
|
void |
setSampleContext(SampleContext sampleContext)
Sets the sample context.
|
protected AbstractSampleSource()
public abstract void run()
run
in interface java.lang.Runnable
public SampleContext getSampleContext()
SampleSource
getSampleContext
in interface SampleSource
public void setSampleContext(SampleContext sampleContext)
SampleSource
setSampleContext
in interface SampleSource
sampleContext
- the sampleContext to setpublic abstract void setSampleConsumers(java.util.List<SampleConsumer> consumers)
SampleSource
setSampleConsumers
in interface SampleSource
consumers
- consumers to be setpublic abstract void addSampleConsumer(SampleConsumer consumer)
SampleSource
addSampleConsumer
in interface SampleSource
consumer
- consumer to be addedpublic abstract void removeSampleConsumer(SampleConsumer consumer)
SampleSource
removeSampleConsumer
in interface SampleSource
consumer
- consumer to be removedCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.