Class MonitorRepositoryUtil
- java.lang.Object
-
- org.palladiosimulator.simulizar.utils.MonitorRepositoryUtil
-
public final class MonitorRepositoryUtil extends Object
Util methods for the monitoring model
-
-
Constructor Summary
Constructors Constructor Description MonitorRepositoryUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
elementConformingToMeasuringPoint(EObject element, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
static List<org.palladiosimulator.monitorrepository.Monitor>
getActiveMonitorsForElement(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepository, EObject element)
static String
getMeasurementIdentifier(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
static List<org.palladiosimulator.monitorrepository.MeasurementSpecification>
getMeasurementSpecificationsForElement(org.palladiosimulator.monitorrepository.MonitorRepository monitorRepository, EObject element)
static EObject
getMonitoredElement(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint mp)
Deprecated.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.
-
-
-
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 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
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)
-
-