public class GridLoadBalancerManager extends GridManagerAdapter<LoadBalancingSpi>
GridComponent.DiscoveryDataExchangeTypectx, log| Constructor and Description |
|---|
GridLoadBalancerManager(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
ClusterNode |
getBalancedNode(GridTaskSessionImpl ses,
List<ClusterNode> top,
ComputeJob job) |
ComputeLoadBalancer |
getLoadBalancer(GridTaskSessionImpl ses,
List<ClusterNode> top) |
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, enabled, getSpi, getSpi, getSpis, inject, onAfterSpiStart, onBeforeSpiStart, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, onReconnected, printMemoryStats, startInfo, startSpi, stopInfo, stopSpi, toString, validateNode, validateNodepublic GridLoadBalancerManager(GridKernalContext ctx)
ctx - Grid kernal context.public void start()
throws IgniteCheckedException
IgniteCheckedException - Throws in case of any errors.public void stop(boolean cancel)
throws IgniteCheckedException
cancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public ClusterNode getBalancedNode(GridTaskSessionImpl ses, List<ClusterNode> top, ComputeJob job) throws IgniteException
ses - Task session.top - Task topology.job - Job to balance.IgniteException - If anything failed.public ComputeLoadBalancer getLoadBalancer(GridTaskSessionImpl ses, List<ClusterNode> top)
ses - Grid task session.top - Task topology.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020