Interface ILoadBalancer
-
- All Known Implementing Classes:
AbstractLoadBalancer
,IdleToThresholdBalancer
,OneToIdleBalancer
,OriginalAbstractLoadBalancer
,ToThresholdBalancer
public interface ILoadBalancer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activelyBalance(IResourceInstance instance)
Balances the load.void
onFork(IResourceInstance current)
void
onSleep(IResourceInstance lastInstance)
void
onTerminate(IResourceInstance lastInstance)
void
onWake(IResourceInstance current)
-
-
-
Method Detail
-
activelyBalance
void activelyBalance(IResourceInstance instance)
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
void onSleep(IResourceInstance lastInstance)
-
onFork
void onFork(IResourceInstance current)
-
onTerminate
void onTerminate(IResourceInstance lastInstance)
-
onWake
void onWake(IResourceInstance current)
-
-