Class SlidingWindowRuntimeMeasurementsRecorder

java.lang.Object
org.palladiosimulator.simulizar.metrics.PRMRecorder
org.palladiosimulator.simulizar.slidingwindow.runtimemeasurement.SlidingWindowRuntimeMeasurementsRecorder
All Implemented Interfaces:
org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener, org.palladiosimulator.recorderframework.IRecorder

public class SlidingWindowRuntimeMeasurementsRecorder extends PRMRecorder implements org.palladiosimulator.recorderframework.IRecorder
This class is responsible for propagating sliding window based measurements from MeasurementSpecifications to the RuntimeMeasurementModel (formerly known as PRM).
Examples of such measurements are power or energy consumption measurements, or the sliding window based computation of utilization.
  • Constructor Details

  • Method Details

    • initialize

      public void initialize(org.palladiosimulator.recorderframework.config.IRecorderConfiguration recorderConfiguration)

      This implementation does nothing.
      Specified by:
      initialize in interface org.palladiosimulator.recorderframework.IRecorder
    • writeData

      public void writeData(org.palladiosimulator.measurementframework.MeasuringValue measurement)
      Specified by:
      writeData in interface org.palladiosimulator.recorderframework.IRecorder
    • flush

      public void flush()

      This implementation does nothing.
      Specified by:
      flush in interface org.palladiosimulator.recorderframework.IRecorder
    • newMeasurementAvailable

      public void newMeasurementAvailable(org.palladiosimulator.measurementframework.MeasuringValue newMeasurement)

      This implementation forwards the measured value obtained from the given MeasuringValue to the RuntimeMeasurementModel.
      Specified by:
      newMeasurementAvailable in interface org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
      Throws:
      NullPointerException - In case == null.
      IllegalArgumentException - In case newMeasurement is not compatible with the expected data metric.
    • preUnregister

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