Class JobSlotStrategyHelper

java.lang.Object
org.palladiosimulator.loadbalancingaction.strategy.JobSlotStrategyHelper

public class JobSlotStrategyHelper extends Object
  • Field Details

    • MIDDLEWARE_PASSIVE_RESOURCE_COMPONENT_NAME

      public static final String MIDDLEWARE_PASSIVE_RESOURCE_COMPONENT_NAME
      See Also:
    • REQUIRED_SLOTS_PARAMETER_SPECIFICATION

      public static final String REQUIRED_SLOTS_PARAMETER_SPECIFICATION
      See Also:
    • COMPUTE_COMPONENT_NAME

      public static final String COMPUTE_COMPONENT_NAME
      See Also:
    • jobQueue

      public final List<JobSlotFirstFitStrategy> jobQueue
    • branchMapping

      public final Map<LoadbalancingBranchTransition,org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> branchMapping
    • resourceContainerSlots

      public final Map<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer,Long> resourceContainerSlots
    • isActive

      public boolean isActive
    • systemAssemblyContext

      public org.palladiosimulator.pcm.core.composition.AssemblyContext systemAssemblyContext
  • Constructor Details

    • JobSlotStrategyHelper

      @Inject public JobSlotStrategyHelper(org.palladiosimulator.simulizar.runtimestate.ComponentInstanceRegistry componentRegistry)
  • Method Details

    • jobFinished

      public void jobFinished(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyFinished, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)
    • hasToBeQueued

      public boolean hasToBeQueued(long requiredSlots)
    • reset

      public void reset()
    • getResourceContainerForBranch

      public org.palladiosimulator.pcm.resourceenvironment.ResourceContainer getResourceContainerForBranch(LoadbalancingBranchTransition branchTransition, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)
    • getFreeSlotsOfContainer

      public Long getFreeSlotsOfContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)
    • activateFitting

      public void activateFitting(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)