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 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 name
      algorithm - the algorithm name
      factor - the scaling factor
      executors - 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 name
      algorithm - the algorithm name
      oldExecutors - the (actual) number of overall executors
      newExecutors - the new number of overall executors
      diffs - return the differences (true) or the absolute values (false)
      Returns:
      the expected scaling (no scaling if empty)