Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
src
cpp
server
load_reporter
load_reporting_service_server_builder_plugin.h
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
19
#ifndef GRPC_SRC_CPP_LOAD_REPORTING_SERVICE_SERVER_BUILDER_PLUGIN_H
20
#define GRPC_SRC_CPP_LOAD_REPORTING_SERVICE_SERVER_BUILDER_PLUGIN_H
21
22
#include <
grpc/support/port_platform.h
>
23
24
#include <memory>
25
#include <string>
26
27
#include <
grpcpp/grpcpp.h
>
28
#include <
grpcpp/impl/server_builder_plugin.h
>
29
#include <
grpcpp/server_builder.h
>
30
#include <
grpcpp/support/channel_arguments.h
>
31
#include <
grpcpp/support/config.h
>
32
33
#include "
src/cpp/server/load_reporter/load_reporter_async_service_impl.h
"
34
35
namespace
grpc
{
36
namespace
load_reporter {
37
38
// The plugin that registers and starts load reporting service when starting a
39
// server.
40
class
LoadReportingServiceServerBuilderPlugin
:
public
ServerBuilderPlugin
{
41
public
:
42
~LoadReportingServiceServerBuilderPlugin
()
override
=
default
;
43
std::string
name
()
override
{
return
"load_reporting_service"
; }
44
45
// Creates a load reporting service.
46
void
UpdateServerBuilder
(
ServerBuilder
*
builder
)
override
;
47
48
// Registers the load reporter service.
49
void
InitServer
(
ServerInitializer
* si)
override
;
50
51
// Starts the load reporter service.
52
void
Finish
(
ServerInitializer
* si)
override
;
53
54
void
ChangeArguments
(
const
std::string
&
/*name*/
,
void
*
/*value*/
)
override
{}
55
void
UpdateChannelArguments
(
grpc::ChannelArguments
*
/*args*/
)
override
{}
56
bool
has_sync_methods
()
const override
;
57
bool
has_async_methods
()
const override
;
58
59
private
:
60
std::shared_ptr<LoadReporterAsyncServiceImpl>
service_
;
61
};
62
63
std::unique_ptr<grpc::ServerBuilderPlugin>
64
CreateLoadReportingServiceServerBuilderPlugin
();
65
66
}
// namespace load_reporter
67
}
// namespace grpc
68
69
#endif // GRPC_SRC_CPP_LOAD_REPORTING_SERVICE_SERVER_BUILDER_PLUGIN_H
grpc
Definition:
grpcpp/alarm.h:33
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin::has_sync_methods
bool has_sync_methods() const override
Definition:
load_reporting_service_server_builder_plugin.cc:31
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin::~LoadReportingServiceServerBuilderPlugin
~LoadReportingServiceServerBuilderPlugin() override=default
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin::name
std::string name() override
Definition:
load_reporting_service_server_builder_plugin.h:43
testing::internal::string
::std::string string
Definition:
bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin::Finish
void Finish(ServerInitializer *si) override
Finish will be called at the end of ServerBuilder::BuildAndStart().
Definition:
load_reporting_service_server_builder_plugin.cc:56
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin::UpdateChannelArguments
void UpdateChannelArguments(grpc::ChannelArguments *) override
Definition:
load_reporting_service_server_builder_plugin.h:55
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin::UpdateServerBuilder
void UpdateServerBuilder(ServerBuilder *builder) override
Definition:
load_reporting_service_server_builder_plugin.cc:45
server_builder_plugin.h
profile_analyzer.builder
builder
Definition:
profile_analyzer.py:159
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin::service_
std::shared_ptr< LoadReporterAsyncServiceImpl > service_
Definition:
load_reporting_service_server_builder_plugin.h:60
channel_arguments.h
grpc::ServerBuilder
A builder class for the creation and startup of grpc::Server instances.
Definition:
grpcpp/server_builder.h:86
grpcpp.h
config.h
grpc::load_reporter::CreateLoadReportingServiceServerBuilderPlugin
std::unique_ptr< grpc::ServerBuilderPlugin > CreateLoadReportingServiceServerBuilderPlugin()
load_reporter_async_service_impl.h
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin::InitServer
void InitServer(ServerInitializer *si) override
Definition:
load_reporting_service_server_builder_plugin.cc:51
grpc::ChannelArguments
Definition:
grpcpp/support/channel_arguments.h:39
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin::ChangeArguments
void ChangeArguments(const std::string &, void *) override
Definition:
load_reporting_service_server_builder_plugin.h:54
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin::has_async_methods
bool has_async_methods() const override
Definition:
load_reporting_service_server_builder_plugin.cc:38
grpc::load_reporter::LoadReportingServiceServerBuilderPlugin
Definition:
load_reporting_service_server_builder_plugin.h:40
grpc::ServerBuilderPlugin
Definition:
grpcpp/impl/server_builder_plugin.h:35
grpc::ServerInitializer
Definition:
grpcpp/impl/server_initializer.h:31
server_builder.h
port_platform.h
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:29