Interface ISlidingWindowListener
-
- All Known Implementing Classes:
SlidingWindowAggregator,SlidingWindowExponentialSmoothingUtilizationAggregator,SlidingWindowUtilizationAggregator
public interface ISlidingWindowListenerThis interface has to be implemented that want to observeSlidingWindows. It provides a callback method (onSlidingWindowFull(Iterable, Measure, Measure)that is triggered by each observed window once it is full, that is, just before it is about to move on.
As eachSlidingWindowdoes only accepts measurements of a certain metric, only compatible observers can be attached. Thus, observers have to also specify a metric they accept (cf.getExpectedWindowDataMetric()).- See Also:
SlidingWindowAggregator,SlidingWindowRecorder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.palladiosimulator.metricspec.MetricDescriptiongetExpectedWindowDataMetric()Gets the metric this listener is accepting.voidonSlidingWindowFull(Iterable<org.palladiosimulator.measurementframework.MeasuringValue> windowData, javax.measure.Measure<Double,javax.measure.quantity.Duration> windowLeftBound, javax.measure.Measure<Double,javax.measure.quantity.Duration> windowLength)This callback method is triggered by each observed window once it is full, that is, just before it is about to move on.
-
-
-
Method Detail
-
onSlidingWindowFull
void onSlidingWindowFull(Iterable<org.palladiosimulator.measurementframework.MeasuringValue> windowData, javax.measure.Measure<Double,javax.measure.quantity.Duration> windowLeftBound, javax.measure.Measure<Double,javax.measure.quantity.Duration> windowLength)
This callback method is triggered by each observed window once it is full, that is, just before it is about to move on.- Parameters:
windowData- AnIterablecontaining the currently collected window data, that is, allMeasuringValues within the window's current bounds.windowLeftBound- AMeasuredenoting the window's current lower/left bound.windowLength- AMeasuredenoting the current window length.
-
getExpectedWindowDataMetric
org.palladiosimulator.metricspec.MetricDescription getExpectedWindowDataMetric()
Gets the metric this listener is accepting.- Returns:
- A
MetricDescriptionindicating the type ofSlidingWindows this listener can observe. - See Also:
ISlidingWindowListener,SlidingWindow.getAcceptedMetric()
-
-