Class SourceVolumePredictorImpl
java.lang.Object
eu.qualimaster.easy.extension.internal.SourceVolumePredictor
eu.qualimaster.easy.extension.internal.SourceVolumePredictorImpl
Implements the source volume predictor based on the Monitoring Layer (via synchronous event communication).
- Author:
- Holger Eichelberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate eu.qualimaster.events.SynchronousEventStore<eu.qualimaster.monitoring.events.SourceVolumePredictionRequest, eu.qualimaster.monitoring.events.SourceVolumePredictionResponse> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsourceVolumePrediction(String pipeline, String source, String keyword) Performs a prediction of source volumes for a certain keyword.sourceVolumePrediction(String pipeline, String source, List<String> keywords) Performs a prediction of source volumes for certain keywords.private eu.qualimaster.monitoring.events.SourceVolumePredictionResponsewaitFor(eu.qualimaster.monitoring.events.SourceVolumePredictionRequest request) Waits for a response to the givenrequest.
-
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:
sourceVolumePredictionin classSourceVolumePredictor- Parameters:
pipeline- the name of the pipeline to predict forsource- the name of the source to predict forkeywords- the keywords to predict for- Returns:
- the predicted new value (may be null if there is no prediction)
-
sourceVolumePrediction
Performs a prediction of source volumes for a certain keyword.- Overrides:
sourceVolumePredictionin classSourceVolumePredictor- Parameters:
pipeline- the name of the pipeline to predict forsource- the name of the source to predict forkeyword- 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 givenrequest.- Parameters:
request- the request- Returns:
- the response (may be null if there was none within the predefined timeout)
-