Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
grpc_core::ServiceConfigImpl Class Referencefinal

#include <service_config_impl.h>

Inheritance diagram for grpc_core::ServiceConfigImpl:
Inheritance graph
[legend]

Public Member Functions

ServiceConfigParser::ParsedConfigGetGlobalParsedConfig (size_t index) override
 
const ServiceConfigParser::ParsedConfigVectorGetMethodParsedConfigVector (const grpc_slice &path) const override
 
absl::string_view json_string () const override
 
 ServiceConfigImpl (const grpc_channel_args *args, std::string json_string, Json json, grpc_error_handle *error)
 
 ~ServiceConfigImpl () override
 
- Public Member Functions inherited from grpc_core::RefCounted< ServiceConfig >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< ServiceConfigRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< ServiceConfigRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< ServiceConfigRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< ServiceConfigRefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
 ~RefCounted ()=default
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Static Public Member Functions

static RefCountedPtr< ServiceConfigCreate (const grpc_channel_args *args, absl::string_view json_string, grpc_error_handle *error)
 

Private Member Functions

grpc_error_handle ParseJsonMethodConfig (const grpc_channel_args *args, const Json &json)
 
grpc_error_handle ParsePerMethodParams (const grpc_channel_args *args)
 

Static Private Member Functions

static std::string ParseJsonMethodName (const Json &json, grpc_error_handle *error)
 

Private Attributes

const ServiceConfigParser::ParsedConfigVectordefault_method_config_vector_
 
Json json_
 
std::string json_string_
 
std::vector< std::unique_ptr< ServiceConfigParser::ParsedConfig > > parsed_global_configs_
 
std::vector< std::unique_ptr< ServiceConfigParser::ParsedConfigVector > > parsed_method_config_vectors_storage_
 
std::unordered_map< grpc_slice, const ServiceConfigParser::ParsedConfigVector *, SliceHashparsed_method_configs_map_
 

Additional Inherited Members

- Public Types inherited from grpc_core::RefCounted< ServiceConfig >
using RefCountedChildType = ServiceConfig
 
- Protected Member Functions inherited from grpc_core::RefCounted< ServiceConfig >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Detailed Description

Definition at line 68 of file service_config_impl.h.

Constructor & Destructor Documentation

◆ ServiceConfigImpl()

grpc_core::ServiceConfigImpl::ServiceConfigImpl ( const grpc_channel_args args,
std::string  json_string,
Json  json,
grpc_error_handle error 
)

Definition at line 51 of file service_config_impl.cc.

◆ ~ServiceConfigImpl()

grpc_core::ServiceConfigImpl::~ServiceConfigImpl ( )
override

Definition at line 75 of file service_config_impl.cc.

Member Function Documentation

◆ Create()

RefCountedPtr< ServiceConfig > grpc_core::ServiceConfigImpl::Create ( const grpc_channel_args args,
absl::string_view  json_string,
grpc_error_handle error 
)
static

Creates a new service config from parsing json_string. Returns null on parse error.

Definition at line 41 of file service_config_impl.cc.

◆ GetGlobalParsedConfig()

ServiceConfigParser::ParsedConfig* grpc_core::ServiceConfigImpl::GetGlobalParsedConfig ( size_t  index)
inlineoverridevirtual

Retrieves the global parsed config at index index. The lifetime of the returned object is tied to the lifetime of the ServiceConfig object.

Implements grpc_core::ServiceConfig.

Definition at line 85 of file service_config_impl.h.

◆ GetMethodParsedConfigVector()

const ServiceConfigParser::ParsedConfigVector * grpc_core::ServiceConfigImpl::GetMethodParsedConfigVector ( const grpc_slice path) const
overridevirtual

Retrieves the vector of parsed configs for the method identified by path. The lifetime of the returned vector and contained objects is tied to the lifetime of the ServiceConfig object.

Implements grpc_core::ServiceConfig.

Definition at line 217 of file service_config_impl.cc.

◆ json_string()

absl::string_view grpc_core::ServiceConfigImpl::json_string ( ) const
inlineoverridevirtual

Implements grpc_core::ServiceConfig.

Definition at line 80 of file service_config_impl.h.

◆ ParseJsonMethodConfig()

grpc_error_handle grpc_core::ServiceConfigImpl::ParseJsonMethodConfig ( const grpc_channel_args args,
const Json json 
)
private

Definition at line 81 of file service_config_impl.cc.

◆ ParseJsonMethodName()

std::string grpc_core::ServiceConfigImpl::ParseJsonMethodName ( const Json json,
grpc_error_handle error 
)
staticprivate

Definition at line 167 of file service_config_impl.cc.

◆ ParsePerMethodParams()

grpc_error_handle grpc_core::ServiceConfigImpl::ParsePerMethodParams ( const grpc_channel_args args)
private

Definition at line 143 of file service_config_impl.cc.

Member Data Documentation

◆ default_method_config_vector_

const ServiceConfigParser::ParsedConfigVector* grpc_core::ServiceConfigImpl::default_method_config_vector_
private
Initial value:
=
nullptr

Definition at line 120 of file service_config_impl.h.

◆ json_

Json grpc_core::ServiceConfigImpl::json_
private

Definition at line 109 of file service_config_impl.h.

◆ json_string_

std::string grpc_core::ServiceConfigImpl::json_string_
private

Definition at line 108 of file service_config_impl.h.

◆ parsed_global_configs_

std::vector<std::unique_ptr<ServiceConfigParser::ParsedConfig> > grpc_core::ServiceConfigImpl::parsed_global_configs_
private

Definition at line 112 of file service_config_impl.h.

◆ parsed_method_config_vectors_storage_

std::vector<std::unique_ptr<ServiceConfigParser::ParsedConfigVector> > grpc_core::ServiceConfigImpl::parsed_method_config_vectors_storage_
private

Definition at line 125 of file service_config_impl.h.

◆ parsed_method_configs_map_

std::unordered_map<grpc_slice, const ServiceConfigParser::ParsedConfigVector*, SliceHash> grpc_core::ServiceConfigImpl::parsed_method_configs_map_
private

Definition at line 118 of file service_config_impl.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:37