public class ApdexSummaryConsumer extends AbstractSummaryConsumer<ApdexSummaryData>
The class ApdexSummaryConsumer provides a consumer that calculates Apdex for each sample name.
T and F thresholds for each sample is defined by the thresholds selector field.
AbstractSummaryConsumer.SummaryInfo
RESULT_VALUE_DATA, RESULT_VALUE_IS_CONTROLLER, RESULT_VALUE_ITEMS, RESULT_VALUE_OVERALL, RESULT_VALUE_SUPPORTS_CONTROLLERS_DISCRIMINATION, RESULT_VALUE_TITLES
Constructor and Description |
---|
ApdexSummaryConsumer() |
Modifier and Type | Method and Description |
---|---|
protected ListResultData |
createDataResult(String key,
ApdexSummaryData data)
Creates a result item for information identified by the specified key.
|
protected ListResultData |
createResultTitles()
Creates the result containing titles of columns.
|
protected String |
getKeyFromSample(Sample sample)
Gets the identifier key from sample.
|
ThresholdSelector |
getThresholdSelector()
Gets the APDEX threshold selector.
|
void |
setThresholdSelector(ThresholdSelector thresholdSelector)
Sets the APDEX threshold selector.
|
protected void |
updateData(AbstractSummaryConsumer.SummaryInfo info,
Sample sample)
Update the stored data with the data from the specified sample.
|
consume, getOverallInfo, getSummaryInfos, hasOverallResult, setHasOverallResult, startConsuming, stopConsuming, suppportsControllersDiscrimination
addSampleConsumer, getConsumedChannelCount, getConsumedMetadata, getConsumer, getDataFromContext, getName, getWorkingDirectory, produce, removeSampleConsumer, setChannelAttribute, setConsumedMetadata, setDataToContext, setName, setProducedMetadata, setSampleConsumer, setSampleConsumers, setSampleContext, startProducing, stopProducing
getChannelAttribute, getSampleContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChannelAttribute, getSampleContext
public final ThresholdSelector getThresholdSelector()
public final void setThresholdSelector(ThresholdSelector thresholdSelector)
thresholdSelector
- the APDEX threshold selector to setprotected ListResultData createDataResult(String key, ApdexSummaryData data)
AbstractSummaryConsumer
createDataResult
in class AbstractSummaryConsumer<ApdexSummaryData>
key
- the keydata
- the dataprotected String getKeyFromSample(Sample sample)
AbstractSummaryConsumer
getKeyFromSample
in class AbstractSummaryConsumer<ApdexSummaryData>
sample
- the sampleprotected void updateData(AbstractSummaryConsumer.SummaryInfo info, Sample sample)
AbstractSummaryConsumer
updateData
in class AbstractSummaryConsumer<ApdexSummaryData>
sample
- the sampleprotected ListResultData createResultTitles()
AbstractSummaryConsumer
createResultTitles
in class AbstractSummaryConsumer<ApdexSummaryData>
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.