Class MonitorRepositoryMapRuntimeMeasurementsRecorder
java.lang.Object
org.palladiosimulator.simulizar.metrics.PRMRecorder
org.palladiosimulator.simulizar.monitorrepository.map.runtimemeasurement.MonitorRepositoryMapRuntimeMeasurementsRecorder
- All Implemented Interfaces:
org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
public class MonitorRepositoryMapRuntimeMeasurementsRecorder
extends PRMRecorder
implements org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
This class is responsible for propagating the measurements that have undergone a transformation
according to the
Map
ProcessingType
to the RuntimeMeasurementModel
(formerly known as PRM).- See Also:
-
Map.apply(MeasuringValue)
MonitorRepositoryMapProbeFrameworkListenerDecorator
-
Constructor Summary
ConstructorDescriptionMonitorRepositoryMapRuntimeMeasurementsRecorder
(RuntimeMeasurementModel rmModel, org.palladiosimulator.monitorrepository.map.Map mapProcessingType) Initializes a new instance of theMonitorRepositoryMapRuntimeMeasurementsRecorder
class with the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionvoid
newMeasurementAvailable
(org.palladiosimulator.measurementframework.MeasuringValue newMeasurement) void
Methods inherited from class org.palladiosimulator.simulizar.metrics.PRMRecorder
detachFromPRM, getMeasurementSpecification, getPRMMeasurement, getPrmModel, updateMeasurementValue
-
Constructor Details
-
MonitorRepositoryMapRuntimeMeasurementsRecorder
public MonitorRepositoryMapRuntimeMeasurementsRecorder(RuntimeMeasurementModel rmModel, org.palladiosimulator.monitorrepository.map.Map mapProcessingType) Initializes a new instance of theMonitorRepositoryMapRuntimeMeasurementsRecorder
class with the given arguments.- Parameters:
rmModel
- TheRuntimeMeasurementModel
which the transformed measurements shall be forwarded to.mapProcessingType
- TheMap
describing the transformation to be applied.- Throws:
NullPointerException
- In case either argument isnull
.IllegalStateException
- If the metric description of the transformed measurement is not aNumericalBaseMetricDescription
as only numeric value can be forwarded so far.- See Also:
-
Map.getOutputMetricDescription()
-
-
Method Details
-
newMeasurementAvailable
public void newMeasurementAvailable(org.palladiosimulator.measurementframework.MeasuringValue newMeasurement) - Specified by:
newMeasurementAvailable
in interfaceorg.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
- Throws:
NullPointerException
- In casenewMeasurement == null
.IllegalStateException
- In case the received measurement is not compliant with the expected metric.
-
preUnregister
public void preUnregister()- Specified by:
preUnregister
in interfaceorg.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
-