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.
Since:
3.0
  • Field Details

  • Constructor Details

    • AbstractVersusRequestsGraphConsumer

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

    • getGranularity

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

      public final void setGranularity(long granularity)
      Sets the granularity.
      Parameters:
      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
      Overrides:
      startConsuming in class AbstractGraphConsumer
    • initialize

      public void initialize()
      Overrides:
      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
      Overrides:
      setConsumedMetadata in class AbstractSampleConsumer
      Parameters:
      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
      Overrides:
      consume in class AbstractGraphConsumer
      Parameters:
      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
      Overrides:
      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
      Parameters:
      parentResult - the parent result