GRPC Core  9.0.0
Data Structures | Static Public Member Functions
grpc_core::LoadBalancingPolicyRegistry Class Reference

#include <lb_policy_registry.h>

Data Structures

class  Builder
 Methods used to create and populate the LoadBalancingPolicyRegistry. More...
 

Static Public Member Functions

static OrphanablePtr< LoadBalancingPolicyCreateLoadBalancingPolicy (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)
 Returns true if the LB policy factory specified by name exists in this registry. More...
 
static RefCountedPtr< LoadBalancingPolicy::ConfigParseLoadBalancingConfig (const grpc_json *json, grpc_error **error)
 Returns a parsed object of the load balancing policy to be used from a LoadBalancingConfig array json. More...
 

Member Function Documentation

◆ CreateLoadBalancingPolicy()

OrphanablePtr< LoadBalancingPolicy > grpc_core::LoadBalancingPolicyRegistry::CreateLoadBalancingPolicy ( const char *  name,
LoadBalancingPolicy::Args  args 
)
static

Creates an LB policy of the type specified by name.

◆ LoadBalancingPolicyExists()

bool grpc_core::LoadBalancingPolicyRegistry::LoadBalancingPolicyExists ( const char *  name,
bool *  requires_config 
)
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.

◆ ParseLoadBalancingConfig()

RefCountedPtr< LoadBalancingPolicy::Config > grpc_core::LoadBalancingPolicyRegistry::ParseLoadBalancingConfig ( const grpc_json json,
grpc_error **  error 
)
static

Returns a parsed object of the load balancing policy to be used from a LoadBalancingConfig array json.


The documentation for this class was generated from the following files: