Class JobSlotStrategyHelper
- java.lang.Object
-
- org.palladiosimulator.loadbalancingaction.strategy.JobSlotStrategyHelper
-
public class JobSlotStrategyHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Map<LoadbalancingBranchTransition,org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>BRANCH_MAPPINGstatic StringCOMPUTE_COMPONENT_NAMEstatic booleanisActivestatic List<JobSlotFirstFitStrategy>JOB_QUEUEstatic StringMIDDLEWARE_PASSIVE_RESOURCE_COMPONENT_NAMEstatic intQUEUE_LENGTH_TO_SEARCHstatic StringREQUIRED_SLOTS_PARAMETER_SPECIFICATIONstatic Map<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer,Long>RESOURCE_CONTAINER_SLOTSstatic org.palladiosimulator.pcm.core.composition.AssemblyContextSYSTEM_ASSEMBLY_CONTEXT
-
Constructor Summary
Constructors Constructor Description JobSlotStrategyHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidactivateFitting(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)static LonggetFreeSlotsOfContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)static org.palladiosimulator.pcm.resourceenvironment.ResourceContainergetResourceContainerForBranch(LoadbalancingBranchTransition branchTransition, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)static booleanhasToBeQueued(long requiredSlots)static voidjobFinished(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyFinished, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)static voidreset()
-
-
-
Field Detail
-
MIDDLEWARE_PASSIVE_RESOURCE_COMPONENT_NAME
public static final String MIDDLEWARE_PASSIVE_RESOURCE_COMPONENT_NAME
- See Also:
- Constant Field Values
-
REQUIRED_SLOTS_PARAMETER_SPECIFICATION
public static final String REQUIRED_SLOTS_PARAMETER_SPECIFICATION
- See Also:
- Constant Field Values
-
COMPUTE_COMPONENT_NAME
public static final String COMPUTE_COMPONENT_NAME
- See Also:
- Constant Field Values
-
JOB_QUEUE
public static final List<JobSlotFirstFitStrategy> JOB_QUEUE
-
BRANCH_MAPPING
public static final Map<LoadbalancingBranchTransition,org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> BRANCH_MAPPING
-
RESOURCE_CONTAINER_SLOTS
public static final Map<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer,Long> RESOURCE_CONTAINER_SLOTS
-
QUEUE_LENGTH_TO_SEARCH
public static final int QUEUE_LENGTH_TO_SEARCH
- See Also:
- Constant Field Values
-
isActive
public static boolean isActive
-
SYSTEM_ASSEMBLY_CONTEXT
public static org.palladiosimulator.pcm.core.composition.AssemblyContext SYSTEM_ASSEMBLY_CONTEXT
-
-
Method Detail
-
jobFinished
public static void jobFinished(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyFinished, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)
-
hasToBeQueued
public static boolean hasToBeQueued(long requiredSlots)
-
reset
public static void reset()
-
getResourceContainerForBranch
public static org.palladiosimulator.pcm.resourceenvironment.ResourceContainer getResourceContainerForBranch(LoadbalancingBranchTransition branchTransition, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)
-
getFreeSlotsOfContainer
public static Long getFreeSlotsOfContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container, org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context)
-
activateFitting
public static void activateFitting(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)
-
-