public class SlidingWindowUtilizationAggregator extends SlidingWindowAggregator
SlidingWindowAggregator
implementation which calculates the utilization
of an active resource based on a sequence of (point in time, state of active resource)
or
(point in time, utilization of active resource)
tuples collected by a
SlidingWindow
. IRecorder
in the form of a
(point in time, utilization of active resource)
tuple each time this implementation
processes new window data.SlidingWindowRecorder
,
getAllowedWindowDataMetrics()
Constructor and Description |
---|
SlidingWindowUtilizationAggregator(org.palladiosimulator.metricspec.MetricDescription windowDataMetric,
org.palladiosimulator.recorderframework.IRecorder recorderToWriteInto)
Initializes a new instance of the
SlidingWindowUtilizationAggregator class with the
given parameter. |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<org.palladiosimulator.metricspec.MetricDescription> |
getAllowedWindowDataMetrics()
Gets all data metrics that can be processed by instances of this class.
|
org.palladiosimulator.metricspec.MetricDescription |
getExpectedWindowDataMetric()
Returns the
MetricDescription all window data must adhere to in order to be processed
by this aggregator. |
addRecorder, onSlidingWindowFull
public SlidingWindowUtilizationAggregator(org.palladiosimulator.metricspec.MetricDescription windowDataMetric, org.palladiosimulator.recorderframework.IRecorder recorderToWriteInto)
SlidingWindowUtilizationAggregator
class with the
given parameter.windowDataMetric
- The MetricDescription
of the measurements to be processed, i.e, which are
used to compute the utilization.recorderToWriteInto
- An IRecorder
this instance writes the aggregated window data into.
Typically, a recorder that writes into a persistence framework like EDP 2 is
passed here.java.lang.NullPointerException
- If either argument is null
.java.lang.IllegalArgumentException
- If the given metric is not supported by this aggregator.public org.palladiosimulator.metricspec.MetricDescription getExpectedWindowDataMetric()
MetricDescription
all window data must adhere to in order to be processed
by this aggregator.MetricDescription
of the data this instance is processing.ISlidingWindowListener
,
SlidingWindow.getAcceptedMetric()
public static java.util.Collection<org.palladiosimulator.metricspec.MetricDescription> getAllowedWindowDataMetrics()
Collection
of those MetricDescription
s which
can be processed.