#include <lb_policy_registry.h>
Classes | |
class | Builder |
Static Public Member Functions | |
static OrphanablePtr< LoadBalancingPolicy > | CreateLoadBalancingPolicy (const char *name, LoadBalancingPolicy::Args args) |
Creates an LB policy of the type specified by name. More... | |
static bool | LoadBalancingPolicyExists (const char *name, bool *requires_config) |
static RefCountedPtr< LoadBalancingPolicy::Config > | ParseLoadBalancingConfig (const Json &json, grpc_error_handle *error) |
Definition at line 35 of file lb_policy_registry.h.
|
static |
Creates an LB policy of the type specified by name.
Definition at line 98 of file lb_policy_registry.cc.
|
static |
Returns true if the LB policy factory specified by name exists in this registry. If the load balancing policy requires a config to be specified then sets requires_config to true.
Definition at line 109 of file lb_policy_registry.cc.
|
static |
Returns a parsed object of the load balancing policy to be used from a LoadBalancingConfig array json.
Definition at line 169 of file lb_policy_registry.cc.