Interface ILoadBalancer
- All Known Implementing Classes:
AbstractLoadBalancer
,IdleToThresholdBalancer
,OneToIdleBalancer
,OriginalAbstractLoadBalancer
,ToThresholdBalancer
public interface ILoadBalancer
-
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)
-
Method Details
-
activelyBalance
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.- Parameters:
instance
-
-
onSleep
-
onFork
-
onTerminate
-
onWake
-