public class TakeNumberOfResourceContainersProbe
extends org.palladiosimulator.probeframework.probes.BasicObjectStateProbe<org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment,java.lang.Long,javax.measure.quantity.Dimensionless>
Constructor and Description |
---|
TakeNumberOfResourceContainersProbe(org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment resourceEnvironment)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected javax.measure.Measure<java.lang.Long,javax.measure.quantity.Dimensionless> |
getBasicMeasure(org.palladiosimulator.probeframework.measurement.RequestContext measurementContext)
Measures the current number of resource containers the ResourceEnvironment (observed state
object).
|
getStateObject
doMeasure
takeMeasurement, takeMeasurement
addObserver, getMetricDesciption, isCompatibleWith, notifyMeasurementSourceListener, removeObserver
public TakeNumberOfResourceContainersProbe(org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment resourceEnvironment)
resourceRegistry
- The observer object is a ResourceEnvironment, thus, allowing to request the
current number of included resource containers.protected javax.measure.Measure<java.lang.Long,javax.measure.quantity.Dimensionless> getBasicMeasure(org.palladiosimulator.probeframework.measurement.RequestContext measurementContext)
getBasicMeasure
in class org.palladiosimulator.probeframework.probes.BasicTriggeredProbe<java.lang.Long,javax.measure.quantity.Dimensionless>