Class JobSlotStrategyHelper
java.lang.Object
org.palladiosimulator.loadbalancingaction.strategy.JobSlotStrategyHelper
-
Field Summary
Modifier and TypeFieldDescriptionfinal Map<LoadbalancingBranchTransition,
org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> static final String
boolean
final List<JobSlotFirstFitStrategy>
static final String
static final int
static final String
org.palladiosimulator.pcm.core.composition.AssemblyContext
-
Constructor Summary
ConstructorDescriptionJobSlotStrategyHelper
(org.palladiosimulator.simulizar.runtimestate.ComponentInstanceRegistry componentRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateFitting
(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container) getFreeSlotsOfContainer
(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context) org.palladiosimulator.pcm.resourceenvironment.ResourceContainer
getResourceContainerForBranch
(LoadbalancingBranchTransition branchTransition, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context) boolean
hasToBeQueued
(long requiredSlots) void
jobFinished
(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyFinished, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context) void
reset()
-
Field Details
-
MIDDLEWARE_PASSIVE_RESOURCE_COMPONENT_NAME
- See Also:
-
REQUIRED_SLOTS_PARAMETER_SPECIFICATION
- See Also:
-
COMPUTE_COMPONENT_NAME
- See Also:
-
jobQueue
-
branchMapping
public final Map<LoadbalancingBranchTransition,org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> branchMapping -
resourceContainerSlots
-
QUEUE_LENGTH_TO_SEARCH
public static final int QUEUE_LENGTH_TO_SEARCH- See Also:
-
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)
-