public abstract class AbstractVersusRequestsGraphConsumer extends AbstractGraphConsumer
Modifier and Type | Field and Description |
---|---|
static String |
RESULT_CTX_GRANULARITY |
static String |
TIME_INTERVAL_LABEL |
DEFAULT_AGGREGATED_KEYS_SERIES_FORMAT, DEFAULT_GROUP, DEFAULT_OVERALL_SERIES_FORMAT, RESULT_MAX_X, RESULT_MAX_Y, RESULT_MIN_X, RESULT_MIN_Y, RESULT_SERIES, RESULT_SERIES_DATA, RESULT_SERIES_IS_CONTROLLER, RESULT_SERIES_IS_OVERALL, RESULT_SERIES_NAME, RESULT_SUPPORTS_CONTROLLERS_DISCRIMINATION, RESULT_TITLE
Modifier | Constructor and Description |
---|---|
protected |
AbstractVersusRequestsGraphConsumer()
Instantiates a new abstract over time graph consumer.
|
Modifier and Type | Method and Description |
---|---|
void |
consume(Sample sample,
int channel)
Consumes the specified sample ton the specified channel.
|
long |
getGranularity()
Gets the granularity.
|
void |
initialize() |
protected void |
initializeExtraResults(MapResultData parentResult)
Inherited classes can add properties to the result
|
void |
setConsumedMetadata(SampleMetadata sampleMetadata,
int channel)
Set the metadata of samples that will be consumed on the specified
channel.
|
void |
setGranularity(long granularity)
Sets the granularity.
|
void |
startConsuming()
Start the sample consuming.
|
void |
stopConsuming()
Stops the consuming process.
|
void |
stopConsumingBase() |
createGroupInfos, createKeysSelector, createSerieResult, getAggregatedKeysSeriesFormat, getGroupInfos, getInvertsKeysAndValues, getKeysSelector, getOverallSeriesFormat, getTitle, rendersPercentiles, setAggregatedKeysSeriesFormat, setOverallSeriesFormat, setRenderPercentiles, setRevertKeysAndValues, setTitle
addSampleConsumer, getConsumedChannelCount, getConsumedMetadata, getConsumer, getDataFromContext, getName, getWorkingDirectory, produce, removeSampleConsumer, setChannelAttribute, setDataToContext, setName, setProducedMetadata, setSampleConsumer, setSampleConsumers, setSampleContext, startProducing, stopProducing
getChannelAttribute, getSampleContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChannelAttribute, getSampleContext
public static final String RESULT_CTX_GRANULARITY
public static final String TIME_INTERVAL_LABEL
protected AbstractVersusRequestsGraphConsumer()
public long getGranularity()
public final void setGranularity(long granularity)
granularity
- the granularity to setpublic void startConsuming()
SampleConsumer
startConsuming
in interface SampleConsumer
startConsuming
in class AbstractGraphConsumer
public void initialize()
initialize
in class AbstractGraphConsumer
public void setConsumedMetadata(SampleMetadata sampleMetadata, int channel)
SampleConsumer
setConsumedMetadata
in interface SampleConsumer
setConsumedMetadata
in class AbstractSampleConsumer
sampleMetadata
- The sample metadata that are being consumed for the
associated channelchannel
- The channel whose sample metadata are being definedpublic void consume(Sample sample, int channel)
SampleConsumer
consume
in interface SampleConsumer
consume
in class AbstractGraphConsumer
sample
- The sample to be consumedchannel
- The channel on which the sample is consumedpublic void stopConsuming()
SampleConsumer
stopConsuming
in interface SampleConsumer
stopConsuming
in class AbstractGraphConsumer
public void stopConsumingBase()
protected void initializeExtraResults(MapResultData parentResult)
AbstractGraphConsumer
initializeExtraResults
in class AbstractGraphConsumer
parentResult
- the parent resultCopyright © 1998-2021 Apache Software Foundation. All Rights Reserved.