Class JobSlotFirstFitStrategy

java.lang.Object
org.palladiosimulator.loadbalancingaction.strategy.AbstractStrategy
org.palladiosimulator.loadbalancingaction.strategy.JobSlotFirstFitStrategy
All Implemented Interfaces:
Strategy

public class JobSlotFirstFitStrategy extends AbstractStrategy
Determines branch transition based on the free job slots on the resource containers. If no slots are free, jobs are put into a queue. Caution: Makes assumptions about the model, should only be used in combination with LoadbalancingActionMiddlewarePassiveResource AT and LoadbalancingActionStaticResourceContainer AT.
  • Constructor Details

    • JobSlotFirstFitStrategy

      public JobSlotFirstFitStrategy(org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context, JobSlotStrategyHelper helper)
  • Method Details

    • determineBranch

      public LoadbalancingBranchTransition determineBranch(EList<LoadbalancingBranchTransition> branchTransitions)
    • setTargetContainer

      public void setTargetContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)
    • activate

      public void activate()
    • getRequiredSlots

      public Long getRequiredSlots()