Class TakeScheduledResourceStateProbe

  • All Implemented Interfaces:
    org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.probeframework.probes.listener.IProbeListener>, org.palladiosimulator.metricspec.metricentity.IMetricEntity

    public class TakeScheduledResourceStateProbe
    extends org.palladiosimulator.probeframework.probes.BasicObjectStateProbe<AbstractScheduledResource,​Long,​javax.measure.quantity.Dimensionless>
    Measures a CPU state metric (dimensionless) by requesting the queue length from the scheduled CPU resource (observed state object). Because scheduled resources can have many instances (e.g., a CPU can have many cores), a pointer to the concrete instance is used additionally.
    • Field Summary

      • Fields inherited from class org.palladiosimulator.probeframework.probes.Probe

        metricEntityDelegate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.measure.Measure<Long,​javax.measure.quantity.Dimensionless> getBasicMeasure​(org.palladiosimulator.probeframework.measurement.RequestContext measurementContext)
      Measures the queue length from the scheduled resources (observed state object).
      • Methods inherited from class org.palladiosimulator.probeframework.probes.BasicObjectStateProbe

        getStateObject
      • Methods inherited from class org.palladiosimulator.probeframework.probes.BasicTriggeredProbe

        doMeasure
      • Methods inherited from class org.palladiosimulator.probeframework.probes.TriggeredProbe

        takeMeasurement, takeMeasurement
      • Methods inherited from class org.palladiosimulator.probeframework.probes.Probe

        addObserver, getMetricDesciption, isCompatibleWith, notifyMeasurementSourceListener, removeObserver
      • Methods inherited from interface org.palladiosimulator.metricspec.metricentity.IMetricEntity

        getMetricDesciption, isCompatibleWith
    • Constructor Detail

      • TakeScheduledResourceStateProbe

        public TakeScheduledResourceStateProbe​(AbstractScheduledResource scheduledResource,
                                               int instance)
        Default constructor.
        Parameters:
        scheduledResource - The observer object is a scheduled resource, thus, allowing to request its queue length.
        instance - Pointer to the concrete instance of the scheduled resource, e.g., CPU 0.
    • Method Detail

      • getBasicMeasure

        protected javax.measure.Measure<Long,​javax.measure.quantity.Dimensionless> getBasicMeasure​(org.palladiosimulator.probeframework.measurement.RequestContext measurementContext)
        Measures the queue length from the scheduled resources (observed state object).
        Specified by:
        getBasicMeasure in class org.palladiosimulator.probeframework.probes.BasicTriggeredProbe<Long,​javax.measure.quantity.Dimensionless>