Class SLOViolationEDP2DatasourceMapper
java.lang.Object
org.palladiosimulator.metricspec.metricentity.MetricEntity
org.palladiosimulator.edp2.datastream.AbstractDataSource
org.palladiosimulator.edp2.datastream.filter.AbstractAdapter
org.palladiosimulator.edp2.datastream.filter.AbstractFilter
org.palladiosimulator.servicelevelobjective.edp2.mappers.SLOViolationEDP2DatasourceMapper
- All Implemented Interfaces:
IAdaptable
,IPersistable
,IPersistableElement
,org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.edp2.datastream.IDataSourceListener>
,org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable
,org.palladiosimulator.edp2.datastream.filter.IFilter
,org.palladiosimulator.edp2.datastream.IDataSink
,org.palladiosimulator.edp2.datastream.IDataSource
,org.palladiosimulator.metricspec.metricentity.IMetricEntity
public class SLOViolationEDP2DatasourceMapper
extends org.palladiosimulator.edp2.datastream.filter.AbstractFilter
implements IPersistable, IPersistableElement
This mapper offers the computation of SLO fulfillment grades for measurements
in relation to their assigned service level objectives.
This enables evaluation of fuzzy thresholded service level objectives.
-
Field Summary
Fields inherited from class org.palladiosimulator.edp2.datastream.AbstractDataSource
datasourceChangedListener
-
Constructor Summary
ConstructorDescriptionSLOViolationEDP2DatasourceMapper
(org.palladiosimulator.edp2.datastream.IDataSource datasource) SLOViolationEDP2DatasourceMapper
(org.palladiosimulator.edp2.datastream.IDataSource datasource, org.palladiosimulator.metricspec.MetricDescription metricDescription) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.palladiosimulator.edp2.datastream.configurable.PropertyConfigurable
Returns a Hashmap containing the Measurements and their corresponding Grades according to the SLOvoid
protected boolean
shouldSkip
(org.palladiosimulator.measurementframework.MeasuringValue measurement) Determines whether an SLO violations occurred for the given SLO member variable and for the given measurement, computes their fulfillment Grade for fuzzy Thresholds.Methods inherited from class org.palladiosimulator.edp2.datastream.filter.AbstractFilter
canAccept
Methods inherited from class org.palladiosimulator.edp2.datastream.filter.AbstractAdapter
computeOutputFromInput, getDataSource, getDataStream, getMeasuringPoint, setDataSource
Methods inherited from class org.palladiosimulator.edp2.datastream.AbstractDataSource
addObserver, getAdapter, getConfiguration, getDefaultConfiguration, getKeys, getProperties, getPropertyType, isPropertyNotSet, removeObserver, setProperties, unsetProperty
Methods inherited from class org.palladiosimulator.metricspec.metricentity.MetricEntity
getMetricDesciption, isCompatibleWith, setMetricDescription
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.palladiosimulator.commons.designpatterns.IAbstractObservable
addObserver, removeObserver
Methods inherited from interface org.palladiosimulator.edp2.datastream.IDataSink
getDataSource, setDataSource
Methods inherited from interface org.palladiosimulator.edp2.datastream.IDataSource
getConfiguration, getDataStream, getMeasuringPoint
Methods inherited from interface org.palladiosimulator.metricspec.metricentity.IMetricEntity
getMetricDesciption, isCompatibleWith
-
Constructor Details
-
SLOViolationEDP2DatasourceMapper
public SLOViolationEDP2DatasourceMapper() -
SLOViolationEDP2DatasourceMapper
public SLOViolationEDP2DatasourceMapper(org.palladiosimulator.edp2.datastream.IDataSource datasource) -
SLOViolationEDP2DatasourceMapper
public SLOViolationEDP2DatasourceMapper(org.palladiosimulator.edp2.datastream.IDataSource datasource, org.palladiosimulator.metricspec.MetricDescription metricDescription)
-
-
Method Details
-
shouldSkip
protected boolean shouldSkip(org.palladiosimulator.measurementframework.MeasuringValue measurement) Determines whether an SLO violations occurred for the given SLO member variable and for the given measurement, computes their fulfillment Grade for fuzzy Thresholds. Linear, Quadratic and Negative Quadratic Thresholds are supported- Overrides:
shouldSkip
in classorg.palladiosimulator.edp2.datastream.filter.AbstractAdapter
-
getFactoryId
- Specified by:
getFactoryId
in interfaceIPersistableElement
-
saveState
- Specified by:
saveState
in interfaceIPersistable
-
createProperties
protected org.palladiosimulator.edp2.datastream.configurable.PropertyConfigurable createProperties()- Overrides:
createProperties
in classorg.palladiosimulator.edp2.datastream.filter.AbstractAdapter
-
getMapping
Returns a Hashmap containing the Measurements and their corresponding Grades according to the SLO- Returns:
- Hashmap<Measurement, Grade>
-