Class MonitorRepositoryUtil
java.lang.Object
org.palladiosimulator.simulizar.utils.MonitorRepositoryUtil
Util methods for the monitoring model
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanelementConformingToMeasuringPoint(EObject element, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint) static List<org.palladiosimulator.monitorrepository.Monitor>getActiveMonitorsForElement(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepository, EObject element) static StringgetMeasurementIdentifier(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint) static List<org.palladiosimulator.monitorrepository.MeasurementSpecification>getMeasurementSpecificationsForElement(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepository, EObject element) static EObjectgetMonitoredElement(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint mp) Deprecated.static org.palladiosimulator.monitorrepository.MeasurementSpecificationisMonitored(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepositoryModel, EObject element, org.palladiosimulator.metricspec.MetricDescription metricDescription) Method checks if given element should be monitored with given performance metric.
-
Constructor Details
-
MonitorRepositoryUtil
public MonitorRepositoryUtil()
-
-
Method Details
-
isMonitored
public static org.palladiosimulator.monitorrepository.MeasurementSpecification isMonitored(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepositoryModel, EObject element, org.palladiosimulator.metricspec.MetricDescription metricDescription) Method checks if given element should be monitored with given performance metric. If yes, it will return the corresponding MeasurementSpecification, otherwise null.- Parameters:
monitorRepositoryModel- the monitoring modelelement- the element to be checked.performanceMetric- the performance metric.- Returns:
- the MeasurementSpecification, if element should be monitored according to given performance metric, otherwise null
-
getMeasurementIdentifier
public static String getMeasurementIdentifier(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint) -
getMonitoredElement
public static EObject getMonitoredElement(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint mp) Deprecated.Method returns the monitored element EObject for a measuring point.- Parameters:
mp- the measuring point for which the monitored element shall be returned- Returns:
- the monitored element
-
getActiveMonitorsForElement
-
getMeasurementSpecificationsForElement
-
elementConformingToMeasuringPoint
public static boolean elementConformingToMeasuringPoint(EObject element, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
-