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
test
cpp
qps
qps_worker.h
Go to the documentation of this file.
1
/*
2
*
3
* Copyright 2015 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 QPS_WORKER_H
20
#define QPS_WORKER_H
21
22
#include <memory>
23
24
#include <
grpc/support/atm.h
>
25
#include <
grpcpp/server.h
>
26
#include <
grpcpp/support/channel_arguments.h
>
27
#include <
grpcpp/support/config.h
>
28
29
#include "
test/cpp/qps/server.h
"
30
31
namespace
grpc
{
32
33
namespace
testing
{
34
35
class
WorkerServiceImpl;
36
37
extern
std::vector<grpc::testing::Server*>*
g_inproc_servers
;
38
39
class
QpsWorker
{
40
public
:
41
explicit
QpsWorker
(
int
driver_port,
int
server_port
,
42
const
std::string
& credential_type);
43
~QpsWorker
();
44
45
bool
Done
()
const
;
46
void
MarkDone
();
47
48
std::shared_ptr<Channel>
InProcessChannel
(
const
ChannelArguments
&
args
) {
49
return
server_
->InProcessChannel(
args
);
50
}
51
52
private
:
53
std::unique_ptr<WorkerServiceImpl>
impl_
;
54
std::unique_ptr<grpc::Server>
server_
;
55
56
gpr_atm
done_
;
57
};
58
59
}
// namespace testing
60
}
// namespace grpc
61
62
#endif
testing
Definition:
aws_request_signer_test.cc:25
grpc
Definition:
grpcpp/alarm.h:33
server_port
static int server_port
Definition:
bad_server_response_test.cc:86
testing::internal::string
::std::string string
Definition:
bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
grpc::testing::QpsWorker::~QpsWorker
~QpsWorker()
Definition:
qps_worker.cc:304
grpc::testing::QpsWorker::server_
std::unique_ptr< grpc::Server > server_
Definition:
qps_worker.h:54
grpc::testing::QpsWorker::MarkDone
void MarkDone()
Definition:
qps_worker.cc:309
grpc::testing::QpsWorker::QpsWorker
QpsWorker(int driver_port, int server_port, const std::string &credential_type)
Definition:
qps_worker.cc:277
grpc::testing::QpsWorker::impl_
std::unique_ptr< WorkerServiceImpl > impl_
Definition:
qps_worker.h:53
asyncio_get_stats.args
args
Definition:
asyncio_get_stats.py:40
channel_arguments.h
grpc::testing::QpsWorker::InProcessChannel
std::shared_ptr< Channel > InProcessChannel(const ChannelArguments &args)
Definition:
qps_worker.h:48
grpc::testing::QpsWorker
Definition:
qps_worker.h:39
grpc::testing::QpsWorker::done_
gpr_atm done_
Definition:
qps_worker.h:56
grpc::testing::g_inproc_servers
std::vector< grpc::testing::Server * > * g_inproc_servers
Definition:
driver.cc:363
config.h
gpr_atm
intptr_t gpr_atm
Definition:
impl/codegen/atm_gcc_atomic.h:32
grpc::ChannelArguments
Definition:
grpcpp/support/channel_arguments.h:39
atm.h
server.h
grpc::testing::QpsWorker::Done
bool Done() const
Definition:
qps_worker.cc:306
server.h
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:59