Class AbstractSampleProcessor
java.lang.Object
org.apache.jmeter.report.processor.AbstractSampleProcessor
- All Implemented Interfaces:
- SampleProcessor
- Direct Known Subclasses:
- AbstractSampleConsumer
Base for sample processor implementations
Implements basic logic for setting sample context and handling channel attributes.
Implements basic logic for setting sample context and handling channel attributes.
- Since:
- 3.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetChannelAttribute(int channel, String key) Return an attribute value associated on a channel on this sample processorGets the sample context.voidsetChannelAttribute(int channel, String key, Object value) Associate an attribute to the specified channel for this sample processor
 If the attribute already exist, it is replaced.voidsetSampleContext(SampleContext sampleContext) Set sample context that this consumer should rely on.
- 
Constructor Details- 
AbstractSampleProcessorpublic AbstractSampleProcessor()
 
- 
- 
Method Details- 
getSampleContextDescription copied from interface:SampleProcessorGets the sample context.- Specified by:
- getSampleContextin interface- SampleProcessor
- Returns:
- the sample context
 
- 
setSampleContextDescription copied from interface:SampleProcessorSet sample context that this consumer should rely on.- Specified by:
- setSampleContextin interface- SampleProcessor
- Parameters:
- sampleContext- the new sample context
 
- 
setChannelAttributeDescription copied from interface:SampleProcessorAssociate an attribute to the specified channel for this sample processor
 If the attribute already exist, it is replaced.- Specified by:
- setChannelAttributein interface- SampleProcessor
- Parameters:
- channel- The channel number to associate the attribute on
- key- The attribute key
- value- The attribute value to be set
 
- 
getChannelAttributeDescription copied from interface:SampleProcessorReturn an attribute value associated on a channel on this sample processor- Specified by:
- getChannelAttributein interface- SampleProcessor
- Parameters:
- channel- The channel on which the attribute is associated
- key- The attribute key to be retrieved
- Returns:
- The attribute value or null if none is found for the specified key
 
 
-