Class AbstractVersusRequestsGraphConsumer

All Implemented Interfaces:
SampleConsumer, SampleProcessor, SampleProducer
Direct Known Subclasses:
LatencyVSRequestGraphConsumer, ResponseTimeVSRequestGraphConsumer

public abstract class AbstractVersusRequestsGraphConsumer extends AbstractGraphConsumer
The class AbstractOverTimeGraphConsumer provides a base class for over time graphs.
  • Field Details

  • Constructor Details

    • AbstractVersusRequestsGraphConsumer

      protected AbstractVersusRequestsGraphConsumer()
      Instantiates a new abstract over time graph consumer.
  • Method Details

    • getGranularity

      public long getGranularity()
      Gets the granularity.
      the granularity
    • setGranularity

      public final void setGranularity(long granularity)
      Sets the granularity.
      granularity - the granularity to set
    • startConsuming

      public void startConsuming()
      Description copied from interface: SampleConsumer
      Start the sample consuming. This step is used by consumer to initialize their process.
      Specified by:
      startConsuming in interface SampleConsumer
      startConsuming in class AbstractGraphConsumer
    • initialize

      public void initialize()
      initialize in class AbstractGraphConsumer
    • setConsumedMetadata

      public void setConsumedMetadata(SampleMetadata sampleMetadata, int channel)
      Description copied from interface: SampleConsumer
      Set the metadata of samples that will be consumed on the specified channel.
      Specified by:
      setConsumedMetadata in interface SampleConsumer
      setConsumedMetadata in class AbstractSampleConsumer
      sampleMetadata - The sample metadata that are being consumed for the associated channel
      channel - The channel whose sample metadata are being defined
    • consume

      public void consume(Sample sample, int channel)
      Description copied from interface: SampleConsumer
      Consumes the specified sample ton the specified channel.
      Specified by:
      consume in interface SampleConsumer
      consume in class AbstractGraphConsumer
      sample - The sample to be consumed
      channel - The channel on which the sample is consumed
    • stopConsuming

      public void stopConsuming()
      Description copied from interface: SampleConsumer
      Stops the consuming process. No sample will be processed after this service has been called.
      Specified by:
      stopConsuming in interface SampleConsumer
      stopConsuming in class AbstractGraphConsumer
    • stopConsumingBase

      public void stopConsumingBase()
    • initializeExtraResults

      protected void initializeExtraResults(MapResultData parentResult)
      Description copied from class: AbstractGraphConsumer
      Inherited classes can add properties to the result
      Specified by:
      initializeExtraResults in class AbstractGraphConsumer
      parentResult - the parent result