| Package | Description |
|---|---|
| com.baidu.brpc.loadbalance |
| Modifier and Type | Field and Description |
|---|---|
protected CopyOnWriteArrayList<FairStrategy.Node> |
FairStrategy.treeContainer
The binary tree used to save weight number for each node.
|
| Modifier and Type | Method and Description |
|---|---|
protected FairStrategy.Node |
FairStrategy.generateWeightTreeByLeafNodes(Queue<FairStrategy.Node> leafNodes)
generate the tree by leaf nodes
the leaf nodes are the real rpc servers
the parent nodes used to calculate the sum of it's children's weight
|
protected FairStrategy.Node |
FairStrategy.searchNode(FairStrategy.Node parent,
int weight) |
| Modifier and Type | Method and Description |
|---|---|
protected CommunicationClient |
FairStrategy.fairSelect(FairStrategy.Node root) |
protected FairStrategy.Node |
FairStrategy.searchNode(FairStrategy.Node parent,
int weight) |
| Modifier and Type | Method and Description |
|---|---|
protected FairStrategy.Node |
FairStrategy.generateWeightTreeByLeafNodes(Queue<FairStrategy.Node> leafNodes)
generate the tree by leaf nodes
the leaf nodes are the real rpc servers
the parent nodes used to calculate the sum of it's children's weight
|
Copyright © 2022 Baidu, Inc.. All rights reserved.