Class TakeNumberOfResourceContainersProbe

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

    public class TakeNumberOfResourceContainersProbe
    extends org.palladiosimulator.probeframework.probes.BasicObjectStateProbe<org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment,​Long,​javax.measure.quantity.Dimensionless>
    Probes the number of resource containers within a resource environment.
    • Field Summary

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

        metricEntityDelegate
    • Constructor Summary

      Constructors 
      Constructor Description
      TakeNumberOfResourceContainersProbe​(org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment resourceEnvironment)
      Default constructor.
    • 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 current number of resource containers the ResourceEnvironment (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

      • TakeNumberOfResourceContainersProbe

        public TakeNumberOfResourceContainersProbe​(org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment resourceEnvironment)
        Default constructor.
        Parameters:
        resourceRegistry - The observer object is a ResourceEnvironment, thus, allowing to request the current number of included resource containers.
    • Method Detail

      • getBasicMeasure

        protected javax.measure.Measure<Long,​javax.measure.quantity.Dimensionless> getBasicMeasure​(org.palladiosimulator.probeframework.measurement.RequestContext measurementContext)
        Measures the current number of resource containers the ResourceEnvironment (observed state object).
        Specified by:
        getBasicMeasure in class org.palladiosimulator.probeframework.probes.BasicTriggeredProbe<Long,​javax.measure.quantity.Dimensionless>