Class SubTopologyScalingHelper
java.lang.Object
eu.qualimaster.easy.extension.internal.SubTopologyScalingHelper
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
public class SubTopologyScalingHelper
extends Object
implements net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
An instantiator for accessing the expected sub-topology scaling of manually implemented sub-topologies.
The request is passed throught to the scalability descriptor of the implementing topology.
- Author:
- Holger Eichelberger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSubTopologyScaling(String pipeline, String algorithm, double factor, boolean executors) Returns the sub-topology scaling for a given algorithm, i.e., if the algorithm is implemented by a (manual) sub-topology.getSubTopologyScaling(String pipeline, String algorithm, int oldExecutors, int newExecutors, boolean diffs) Returns the sub-topology scaling for a given algorithm, i.e., if the algorithm is implemented by a (manual) sub-topology.
-
Constructor Details
-
SubTopologyScalingHelper
public SubTopologyScalingHelper()
-
-
Method Details
-
getSubTopologyScaling
public static net.ssehub.easy.instantiation.core.model.vilTypes.Map<String,Integer> getSubTopologyScaling(String pipeline, String algorithm, double factor, boolean executors) Returns the sub-topology scaling for a given algorithm, i.e., if the algorithm is implemented by a (manual) sub-topology.- Parameters:
pipeline- the pipeline namealgorithm- the algorithm namefactor- the scaling factorexecutors- scale the executors or the tasks- Returns:
- the expected scaling (no scaling if empty)
-
getSubTopologyScaling
public static net.ssehub.easy.instantiation.core.model.vilTypes.Map<String,Integer> getSubTopologyScaling(String pipeline, String algorithm, int oldExecutors, int newExecutors, boolean diffs) Returns the sub-topology scaling for a given algorithm, i.e., if the algorithm is implemented by a (manual) sub-topology.- Parameters:
pipeline- the pipeline namealgorithm- the algorithm nameoldExecutors- the (actual) number of overall executorsnewExecutors- the new number of overall executorsdiffs- return the differences (true) or the absolute values (false)- Returns:
- the expected scaling (no scaling if empty)
-