Class OneToIdleBalancer
java.lang.Object
edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.balancers.AbstractLoadBalancer
edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.balancers.OneToIdleBalancer
- All Implemented Interfaces:
ILoadBalancer
Moves one process to each idle resource, if possible.
-
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
ConstructorDescriptionOneToIdleBalancer
(double balance_interval, boolean prio_increasing, boolean queue_ascending) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activelyBalance
(IResourceInstance instance) Balances the load.void
onFork
(IResourceInstance instance) void
onSleep
(IResourceInstance instance) void
onTerminate
(IResourceInstance instance) void
onWake
(IResourceInstance instance) Methods inherited from class edu.kit.ipd.sdq.pcm.simulation.scheduler.exact.loaddistribution.balancers.AbstractLoadBalancer
load, setQueueHolder
-
Constructor Details
-
OneToIdleBalancer
public OneToIdleBalancer(double balance_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
-