Class 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 Detail

      • MonitorRepositoryMapRuntimeMeasurementsRecorder

        public MonitorRepositoryMapRuntimeMeasurementsRecorder​(RuntimeMeasurementModel rmModel,
                                                               org.palladiosimulator.monitorrepository.map.Map mapProcessingType)
        Initializes a new instance of the MonitorRepositoryMapRuntimeMeasurementsRecorder class with the given arguments.
        Parameters:
        rmModel - The RuntimeMeasurementModel which the transformed measurements shall be forwarded to.
        mapProcessingType - The Map describing the transformation to be applied.
        Throws:
        NullPointerException - In case either argument is null.
        IllegalStateException - If the metric description of the transformed measurement is not a NumericalBaseMetricDescription as only numeric value can be forwarded so far.
        See Also:
        Map.getOutputMetricDescription()
    • Method Detail

      • newMeasurementAvailable

        public void newMeasurementAvailable​(org.palladiosimulator.measurementframework.MeasuringValue newMeasurement)
        Specified by:
        newMeasurementAvailable in interface org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
        Throws:
        NullPointerException - In case newMeasurement == null.
        IllegalStateException - In case the received measurement is not compliant with the expected metric.
      • preUnregister

        public void preUnregister()
        Specified by:
        preUnregister in interface org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener