Class IdleToThresholdBalancer
java.lang.Object
edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.balancers.AbstractLoadBalancer
edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.balancers.IdleToThresholdBalancer
- All Implemented Interfaces:
ILoadBalancer
-
Field Summary
Fields inherited from class edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.balancers.AbstractLoadBalancer
balancing_interval, last_balanced, prio_increasing, queue_ascending, queue_holder
-
Constructor Summary
ModifierConstructorDescriptionprotected
IdleToThresholdBalancer
(double balancing_interval, boolean prio_increasing, boolean queue_ascending) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activelyBalance
(IResourceInstance instance) Balances the load.void
onFork
(IResourceInstance current) void
onSleep
(IResourceInstance lastInstance) void
onTerminate
(IResourceInstance lastInstance) void
onWake
(IResourceInstance current) Methods inherited from class edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.balancers.AbstractLoadBalancer
load, setQueueHolder
-
Constructor Details
-
IdleToThresholdBalancer
protected IdleToThresholdBalancer(double balancing_interval, boolean prio_increasing, boolean queue_ascending)
-
-
Method Details
-
activelyBalance
Description copied from interface:ILoadBalancer
Balances the load. Two scenarios are possible. Either the load is balanced between all instances, or the specified instances pulls processes from the busiest one. -
onFork
-
onSleep
-
onTerminate
-
onWake
-