Class SourceVolumePredictorImpl

java.lang.Object
eu.qualimaster.easy.extension.internal.SourceVolumePredictor
eu.qualimaster.easy.extension.internal.SourceVolumePredictorImpl

class SourceVolumePredictorImpl extends SourceVolumePredictor
Implements the source volume predictor based on the Monitoring Layer (via synchronous event communication).
Author:
Holger Eichelberger
  • Field Details

    • store

      private eu.qualimaster.events.SynchronousEventStore<eu.qualimaster.monitoring.events.SourceVolumePredictionRequest,eu.qualimaster.monitoring.events.SourceVolumePredictionResponse> store
  • Constructor Details

    • SourceVolumePredictorImpl

      SourceVolumePredictorImpl()
  • Method Details

    • sourceVolumePrediction

      public Map<String,Double> sourceVolumePrediction(String pipeline, String source, List<String> keywords)
      Performs a prediction of source volumes for certain keywords.
      Overrides:
      sourceVolumePrediction in class SourceVolumePredictor
      Parameters:
      pipeline - the name of the pipeline to predict for
      source - the name of the source to predict for
      keywords - the keywords to predict for
      Returns:
      the predicted new value (may be null if there is no prediction)
    • sourceVolumePrediction

      public Double sourceVolumePrediction(String pipeline, String source, String keyword)
      Performs a prediction of source volumes for a certain keyword.
      Overrides:
      sourceVolumePrediction in class SourceVolumePredictor
      Parameters:
      pipeline - the name of the pipeline to predict for
      source - the name of the source to predict for
      keyword - the keyword to predict for
      Returns:
      the predicted new value (may be null if there is no prediction)
    • waitFor

      private eu.qualimaster.monitoring.events.SourceVolumePredictionResponse waitFor(eu.qualimaster.monitoring.events.SourceVolumePredictionRequest request)
      Waits for a response to the given request.
      Parameters:
      request - the request
      Returns:
      the response (may be null if there was none within the predefined timeout)