Class AbstractReconfigurationPlanningStrategy<C,A>
java.lang.Object
org.palladiosimulator.simexp.pcm.examples.performability.AbstractReconfigurationPlanningStrategy<C,A>
- All Implemented Interfaces:
ReconfigurationPlanningStrategy
- Direct Known Subclasses:
AbstractLoadBalancingScalingPlanningStrategy
,FaultTolerantLoadBalancingPlanningStrategy
,LoadBalancingEmptyReconfigurationPlanningStrategy
public abstract class AbstractReconfigurationPlanningStrategy<C,A>
extends Object
implements ReconfigurationPlanningStrategy
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.log4j.Logger
protected final NodeRecoveryStrategy<C,
A> -
Constructor Summary
ConstructorDescriptionAbstractReconfigurationPlanningStrategy
(PcmMeasurementSpecification responseTimeSpec, PerformabilityStrategyConfiguration strategyConfiguration, NodeRecoveryStrategy<C, A> recoveryStrategy) -
Method Summary
Modifier and TypeMethodDescriptionprotected QVToReconfiguration
protected Optional<QVToReconfiguration>
findReconfiguration
(String name, Set<QVToReconfiguration> options2) protected String
missingQvtoTransformationMessage
(String qvtoTransformationName) abstract QVToReconfiguration
planReconfigurationSteps
(State source, Set<QVToReconfiguration> options, SharedKnowledge knowledge) workaround until all steps are supported as QVTO transformation will return an empty qvto transformationprotected Double
retrieveResponseTime
(SelfAdaptiveSystemState<C, A, List<org.palladiosimulator.envdyn.api.entity.bn.InputValue<tools.mdsd.probdist.api.entity.CategoricalValue>>> sasState) protected Map<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer,
tools.mdsd.probdist.api.entity.CategoricalValue> retrieveServerNodeStates
(PerceivableEnvironmentalState<List<org.palladiosimulator.envdyn.api.entity.bn.InputValue<tools.mdsd.probdist.api.entity.CategoricalValue>>> state)
-
Field Details
-
LOGGER
protected static final org.apache.log4j.Logger LOGGER -
recoveryStrategy
-
-
Constructor Details
-
AbstractReconfigurationPlanningStrategy
public AbstractReconfigurationPlanningStrategy(PcmMeasurementSpecification responseTimeSpec, PerformabilityStrategyConfiguration strategyConfiguration, NodeRecoveryStrategy<C, A> recoveryStrategy)
-
-
Method Details
-
retrieveResponseTime
protected Double retrieveResponseTime(SelfAdaptiveSystemState<C, A, List<org.palladiosimulator.envdyn.api.entity.bn.InputValue<tools.mdsd.probdist.api.entity.CategoricalValue>>> sasState) -
retrieveServerNodeStates
protected Map<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer,tools.mdsd.probdist.api.entity.CategoricalValue> retrieveServerNodeStates(PerceivableEnvironmentalState<List<org.palladiosimulator.envdyn.api.entity.bn.InputValue<tools.mdsd.probdist.api.entity.CategoricalValue>>> state) -
findReconfiguration
protected Optional<QVToReconfiguration> findReconfiguration(String name, Set<QVToReconfiguration> options2) -
missingQvtoTransformationMessage
-
emptyReconfiguration