Class AbstractNodeRecoveryStrategy<PCMInstance,A>
java.lang.Object
org.palladiosimulator.simexp.pcm.examples.performability.AbstractNodeRecoveryStrategy<PCMInstance,A>
- All Implemented Interfaces:
NodeRecoveryStrategy<PCMInstance,
A>
- Direct Known Subclasses:
FaultTolerantScalingNodeFailureRecoveryStrategy
,LoadBalancerNodeFailureRecoveryStrategy
public abstract class AbstractNodeRecoveryStrategy<PCMInstance,A>
extends Object
implements NodeRecoveryStrategy<PCMInstance,A>
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final double
protected static final org.apache.log4j.Logger
protected static final double
protected final RepositoryModelLookup
protected final RepositoryModelUpdater
protected final ResourceEnvironmentModelLookup
protected final PerformabilityStrategyConfiguration
protected static final double
-
Constructor Summary
ConstructorDescriptionAbstractNodeRecoveryStrategy
(PerformabilityStrategyConfiguration strategyConfiguration, RepositoryModelLookup repositoryLookup, ResourceEnvironmentModelLookup resourceEnvLookup, RepositoryModelUpdater repositoryUpdater) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
execute
(SelfAdaptiveSystemState<PCMInstance, A, List<org.palladiosimulator.envdyn.api.entity.bn.InputValue<tools.mdsd.probdist.api.entity.CategoricalValue>>> sasState, SharedKnowledge knowledge) protected org.palladiosimulator.pcm.seff.ProbabilisticBranchTransition
findProbabilisticBranchTransitionToServerNode
(org.palladiosimulator.pcm.repository.Repository repository, String loadBalancerBasicComponentId, String loadBalancerSeffOperationSignatureEntityName, String branchTransitionEntityName, String operationRequiredRoleName, String loadBalancerSeffBranchActionId) protected void
logMsg
(String node1EntiyName, String node2EntiyName, String node1Id, String node2Id, String node1State, String node2State, double probBranchTransitionToServerNode1, double probBranchTransitionToServerNode2)
-
Field Details
-
LOGGER
protected static final org.apache.log4j.Logger LOGGER -
ZERO_BRANCH_TRANSITION_PROBABILITY
protected static final double ZERO_BRANCH_TRANSITION_PROBABILITY- See Also:
-
ONE_BRANCH_TRANSITION_PROBABILITY
protected static final double ONE_BRANCH_TRANSITION_PROBABILITY- See Also:
-
DEFAULT_BRANCH_TRANSITION_PROBABILITY
protected static final double DEFAULT_BRANCH_TRANSITION_PROBABILITY- See Also:
-
strategyConfiguration
-
repositoryLookup
-
resourceEnvLookup
-
repositoryUpdater
-
-
Constructor Details
-
AbstractNodeRecoveryStrategy
public AbstractNodeRecoveryStrategy(PerformabilityStrategyConfiguration strategyConfiguration, RepositoryModelLookup repositoryLookup, ResourceEnvironmentModelLookup resourceEnvLookup, RepositoryModelUpdater repositoryUpdater)
-
-
Method Details
-
findProbabilisticBranchTransitionToServerNode
protected org.palladiosimulator.pcm.seff.ProbabilisticBranchTransition findProbabilisticBranchTransitionToServerNode(org.palladiosimulator.pcm.repository.Repository repository, String loadBalancerBasicComponentId, String loadBalancerSeffOperationSignatureEntityName, String branchTransitionEntityName, String operationRequiredRoleName, String loadBalancerSeffBranchActionId) -
logMsg