Class MonitorRepositoryUtil


  • public final class MonitorRepositoryUtil
    extends Object
    Util methods for the monitoring model
    • Constructor Detail

      • MonitorRepositoryUtil

        public MonitorRepositoryUtil()
    • Method Detail

      • 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 model
        element - the element to be checked.
        performanceMetric - the performance metric.
        Returns:
        the MeasurementSpecification, if element should be monitored according to given performance metric, otherwise null
      • getMonitoredElement

        public static EObject getMonitoredElement​(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint mp)
        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

        public static List<org.palladiosimulator.monitorrepository.Monitor> getActiveMonitorsForElement​(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepository,
                                                                                                        EObject element)
      • getMeasurementSpecificationsForElement

        public static List<org.palladiosimulator.monitorrepository.MeasurementSpecification> getMeasurementSpecificationsForElement​(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepository,
                                                                                                                                    EObject element)
      • elementConformingToMeasuringPoint

        public static boolean elementConformingToMeasuringPoint​(EObject element,
                                                                org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)