public abstract class SlidingWindowAggregator extends java.lang.Object implements ISlidingWindowListener
ISlidingWindowListener
that aggregate/process the
measurements collected by a SlidingWindow
once it is full (i.e., it moved on).SlidingWindowRecorder
Constructor and Description |
---|
SlidingWindowAggregator()
Initializes a new instance of the
SlidingWindowAggregator class which shall not be
connected to a recorder (data sink) yet. |
SlidingWindowAggregator(java.util.Collection<org.palladiosimulator.recorderframework.IRecorder> recordersToWriteInto)
Initializes a new instance of the
SlidingWindowAggregator class with the given
parameter. |
SlidingWindowAggregator(org.palladiosimulator.recorderframework.IRecorder recorderToWriteInto)
Initializes a new instance of the
SlidingWindowAggregator class with the given
parameter. |
Modifier and Type | Method and Description |
---|---|
void |
addRecorder(org.palladiosimulator.recorderframework.IRecorder recorder) |
void |
onSlidingWindowFull(java.lang.Iterable<org.palladiosimulator.measurementframework.MeasuringValue> windowData,
javax.measure.Measure<java.lang.Double,javax.measure.quantity.Duration> windowLeftBound,
javax.measure.Measure<java.lang.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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpectedWindowDataMetric
public SlidingWindowAggregator()
SlidingWindowAggregator
class which shall not be
connected to a recorder (data sink) yet.addRecorder(IRecorder)
public SlidingWindowAggregator(org.palladiosimulator.recorderframework.IRecorder recorderToWriteInto)
SlidingWindowAggregator
class with the given
parameter.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 the given IRecorder
is null
.public SlidingWindowAggregator(java.util.Collection<org.palladiosimulator.recorderframework.IRecorder> recordersToWriteInto)
SlidingWindowAggregator
class with the given
parameter.recordersToWriteInto
- A @Collection
of IRecorder
s this instance writes the aggregated
window data into. Typically, recorders that write data into persistence frameworks
like EDP 2 are passed here.java.lang.NullPointerException
- If the given collection of IRecorder
s is null
.java.lang.IllegalArgumentException
- If the given collection of recorders is empty.public void addRecorder(org.palladiosimulator.recorderframework.IRecorder recorder)
public final void onSlidingWindowFull(java.lang.Iterable<org.palladiosimulator.measurementframework.MeasuringValue> windowData, javax.measure.Measure<java.lang.Double,javax.measure.quantity.Duration> windowLeftBound, javax.measure.Measure<java.lang.Double,javax.measure.quantity.Duration> windowLength)
ISlidingWindowListener
onSlidingWindowFull
in interface ISlidingWindowListener
windowData
- An Iterable
containing the currently collected window data, that is, all
MeasuringValue
s within the window's current bounds.windowLeftBound
- A Measure
denoting the window's current lower/left bound.windowLength
- A Measure
denoting the current window length.