Class TakeScheduledResourceUtilization

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

    public class TakeScheduledResourceUtilization
    extends org.palladiosimulator.probeframework.probes.BasicObjectStateProbe<AbstractScheduledResource,​Double,​javax.measure.quantity.Dimensionless>
    Measures the CPU utilization (dimensionless) by requesting the queue length from the scheduled CPU resource (observed state object) for all cores normalized by the number of cores. If one core is busy with 2 processes and another core is idle for a 2 core system then the utilization is 50%.
    • 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<Double,​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

      • TakeScheduledResourceUtilization

        public TakeScheduledResourceUtilization​(AbstractScheduledResource scheduledResource)
        Default constructor.
        Parameters:
        scheduledResource - The observer object is a scheduled resource, thus, allowing to request its queue length.
    • Method Detail

      • getBasicMeasure

        protected javax.measure.Measure<Double,​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<Double,​javax.measure.quantity.Dimensionless>