MCPcopy Create free account
hub / github.com/baidu/tera / GetWeight

Method GetWeight

src/load_balancer/cost_function.h:34–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 virtual void Init(const std::shared_ptr<Cluster>& cluster) { cluster_ = cluster; }
33
34 double GetWeight() const { return weight_; }
35
36 void SetWeight(double w) { weight_ = w; }
37

Callers 3

NeedBalanceMethod · 0.80
ComputeCostMethod · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64