load_reporting_service_server_builder_option.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2018 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
20 
21 #include <algorithm>
22 #include <memory>
23 #include <vector>
24 
29 
31 
32 namespace grpc {
33 namespace load_reporter {
34 namespace experimental {
35 
38  args->SetInt(GRPC_ARG_ENABLE_LOAD_REPORTING, true);
39 }
40 
42  std::vector<std::unique_ptr<grpc::ServerBuilderPlugin>>* plugins) {
43  plugins->emplace_back(
45 }
46 
47 } // namespace experimental
48 } // namespace load_reporter
49 } // namespace grpc
grpc::load_reporter::experimental::LoadReportingServiceServerBuilderOption::UpdatePlugins
void UpdatePlugins(std::vector< std::unique_ptr< grpc::ServerBuilderPlugin >> *plugins) override
Alter the ServerBuilderPlugin map that will be added into ServerBuilder.
Definition: load_reporting_service_server_builder_option.cc:41
grpc
Definition: grpcpp/alarm.h:33
grpc_types.h
server_builder_plugin.h
asyncio_get_stats.args
args
Definition: asyncio_get_stats.py:40
channel_arguments.h
grpc::load_reporter::experimental::LoadReportingServiceServerBuilderOption::UpdateArguments
void UpdateArguments(grpc::ChannelArguments *args) override
Alter the ChannelArguments used to create the gRPC server.
Definition: load_reporting_service_server_builder_option.cc:36
grpc::ChannelArguments
Definition: grpcpp/support/channel_arguments.h:39
server_load_reporting.h
load_reporting_service_server_builder_plugin.h
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin
Definition: load_reporting_service_server_builder_plugin.h:40
GRPC_ARG_ENABLE_LOAD_REPORTING
#define GRPC_ARG_ENABLE_LOAD_REPORTING
Definition: grpc_types.h:144
port_platform.h


grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:16