YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/consensus/consensus.proxy.cc
Line
Count
Source (jump to first uncovered line)
1
// THIS FILE IS AUTOGENERATED FROM yb/consensus/consensus.proto
2
3
#include "yb/consensus/consensus.proxy.h"
4
5
#include "yb/consensus/consensus.service.h"
6
7
#include "yb/rpc/proxy.h"
8
#include "yb/rpc/outbound_call.h"
9
#include "yb/util/metrics.h"
10
#include "yb/util/net/sockaddr.h"
11
12
METRIC_DEFINE_counter(
13
  server, proxy_request_bytes_yb_consensus_ConsensusService_UpdateConsensus,
14
  "Bytes sent by yb.consensus.ConsensusService.UpdateConsensus() RPC requests",
15
  yb::MetricUnit::kBytes,
16
  "Bytes sent by yb.consensus.ConsensusService.UpdateConsensus() RPC requests");
17
18
METRIC_DEFINE_counter(
19
  server, proxy_response_bytes_yb_consensus_ConsensusService_UpdateConsensus,
20
  "Bytes received in response to yb.consensus.ConsensusService.UpdateConsensus() RPC requests",
21
  yb::MetricUnit::kBytes,
22
  "Bytes received in response to yb.consensus.ConsensusService.UpdateConsensus() RPC requests");
23
24
METRIC_DEFINE_counter(
25
  server, proxy_request_bytes_yb_consensus_ConsensusService_MultiRaftUpdateConsensus,
26
  "Bytes sent by yb.consensus.ConsensusService.MultiRaftUpdateConsensus() RPC requests",
27
  yb::MetricUnit::kBytes,
28
  "Bytes sent by yb.consensus.ConsensusService.MultiRaftUpdateConsensus() RPC requests");
29
30
METRIC_DEFINE_counter(
31
  server, proxy_response_bytes_yb_consensus_ConsensusService_MultiRaftUpdateConsensus,
32
  "Bytes received in response to yb.consensus.ConsensusService.MultiRaftUpdateConsensus() RPC requests",
33
  yb::MetricUnit::kBytes,
34
  "Bytes received in response to yb.consensus.ConsensusService.MultiRaftUpdateConsensus() RPC requests");
35
36
METRIC_DEFINE_counter(
37
  server, proxy_request_bytes_yb_consensus_ConsensusService_RequestConsensusVote,
38
  "Bytes sent by yb.consensus.ConsensusService.RequestConsensusVote() RPC requests",
39
  yb::MetricUnit::kBytes,
40
  "Bytes sent by yb.consensus.ConsensusService.RequestConsensusVote() RPC requests");
41
42
METRIC_DEFINE_counter(
43
  server, proxy_response_bytes_yb_consensus_ConsensusService_RequestConsensusVote,
44
  "Bytes received in response to yb.consensus.ConsensusService.RequestConsensusVote() RPC requests",
45
  yb::MetricUnit::kBytes,
46
  "Bytes received in response to yb.consensus.ConsensusService.RequestConsensusVote() RPC requests");
47
48
METRIC_DEFINE_counter(
49
  server, proxy_request_bytes_yb_consensus_ConsensusService_ChangeConfig,
50
  "Bytes sent by yb.consensus.ConsensusService.ChangeConfig() RPC requests",
51
  yb::MetricUnit::kBytes,
52
  "Bytes sent by yb.consensus.ConsensusService.ChangeConfig() RPC requests");
53
54
METRIC_DEFINE_counter(
55
  server, proxy_response_bytes_yb_consensus_ConsensusService_ChangeConfig,
56
  "Bytes received in response to yb.consensus.ConsensusService.ChangeConfig() RPC requests",
57
  yb::MetricUnit::kBytes,
58
  "Bytes received in response to yb.consensus.ConsensusService.ChangeConfig() RPC requests");
59
60
METRIC_DEFINE_counter(
61
  server, proxy_request_bytes_yb_consensus_ConsensusService_UnsafeChangeConfig,
62
  "Bytes sent by yb.consensus.ConsensusService.UnsafeChangeConfig() RPC requests",
63
  yb::MetricUnit::kBytes,
64
  "Bytes sent by yb.consensus.ConsensusService.UnsafeChangeConfig() RPC requests");
65
66
METRIC_DEFINE_counter(
67
  server, proxy_response_bytes_yb_consensus_ConsensusService_UnsafeChangeConfig,
68
  "Bytes received in response to yb.consensus.ConsensusService.UnsafeChangeConfig() RPC requests",
69
  yb::MetricUnit::kBytes,
70
  "Bytes received in response to yb.consensus.ConsensusService.UnsafeChangeConfig() RPC requests");
71
72
METRIC_DEFINE_counter(
73
  server, proxy_request_bytes_yb_consensus_ConsensusService_GetNodeInstance,
74
  "Bytes sent by yb.consensus.ConsensusService.GetNodeInstance() RPC requests",
75
  yb::MetricUnit::kBytes,
76
  "Bytes sent by yb.consensus.ConsensusService.GetNodeInstance() RPC requests");
77
78
METRIC_DEFINE_counter(
79
  server, proxy_response_bytes_yb_consensus_ConsensusService_GetNodeInstance,
80
  "Bytes received in response to yb.consensus.ConsensusService.GetNodeInstance() RPC requests",
81
  yb::MetricUnit::kBytes,
82
  "Bytes received in response to yb.consensus.ConsensusService.GetNodeInstance() RPC requests");
83
84
METRIC_DEFINE_counter(
85
  server, proxy_request_bytes_yb_consensus_ConsensusService_RunLeaderElection,
86
  "Bytes sent by yb.consensus.ConsensusService.RunLeaderElection() RPC requests",
87
  yb::MetricUnit::kBytes,
88
  "Bytes sent by yb.consensus.ConsensusService.RunLeaderElection() RPC requests");
89
90
METRIC_DEFINE_counter(
91
  server, proxy_response_bytes_yb_consensus_ConsensusService_RunLeaderElection,
92
  "Bytes received in response to yb.consensus.ConsensusService.RunLeaderElection() RPC requests",
93
  yb::MetricUnit::kBytes,
94
  "Bytes received in response to yb.consensus.ConsensusService.RunLeaderElection() RPC requests");
95
96
METRIC_DEFINE_counter(
97
  server, proxy_request_bytes_yb_consensus_ConsensusService_LeaderElectionLost,
98
  "Bytes sent by yb.consensus.ConsensusService.LeaderElectionLost() RPC requests",
99
  yb::MetricUnit::kBytes,
100
  "Bytes sent by yb.consensus.ConsensusService.LeaderElectionLost() RPC requests");
101
102
METRIC_DEFINE_counter(
103
  server, proxy_response_bytes_yb_consensus_ConsensusService_LeaderElectionLost,
104
  "Bytes received in response to yb.consensus.ConsensusService.LeaderElectionLost() RPC requests",
105
  yb::MetricUnit::kBytes,
106
  "Bytes received in response to yb.consensus.ConsensusService.LeaderElectionLost() RPC requests");
107
108
METRIC_DEFINE_counter(
109
  server, proxy_request_bytes_yb_consensus_ConsensusService_LeaderStepDown,
110
  "Bytes sent by yb.consensus.ConsensusService.LeaderStepDown() RPC requests",
111
  yb::MetricUnit::kBytes,
112
  "Bytes sent by yb.consensus.ConsensusService.LeaderStepDown() RPC requests");
113
114
METRIC_DEFINE_counter(
115
  server, proxy_response_bytes_yb_consensus_ConsensusService_LeaderStepDown,
116
  "Bytes received in response to yb.consensus.ConsensusService.LeaderStepDown() RPC requests",
117
  yb::MetricUnit::kBytes,
118
  "Bytes received in response to yb.consensus.ConsensusService.LeaderStepDown() RPC requests");
119
120
METRIC_DEFINE_counter(
121
  server, proxy_request_bytes_yb_consensus_ConsensusService_GetLastOpId,
122
  "Bytes sent by yb.consensus.ConsensusService.GetLastOpId() RPC requests",
123
  yb::MetricUnit::kBytes,
124
  "Bytes sent by yb.consensus.ConsensusService.GetLastOpId() RPC requests");
125
126
METRIC_DEFINE_counter(
127
  server, proxy_response_bytes_yb_consensus_ConsensusService_GetLastOpId,
128
  "Bytes received in response to yb.consensus.ConsensusService.GetLastOpId() RPC requests",
129
  yb::MetricUnit::kBytes,
130
  "Bytes received in response to yb.consensus.ConsensusService.GetLastOpId() RPC requests");
131
132
METRIC_DEFINE_counter(
133
  server, proxy_request_bytes_yb_consensus_ConsensusService_GetConsensusState,
134
  "Bytes sent by yb.consensus.ConsensusService.GetConsensusState() RPC requests",
135
  yb::MetricUnit::kBytes,
136
  "Bytes sent by yb.consensus.ConsensusService.GetConsensusState() RPC requests");
137
138
METRIC_DEFINE_counter(
139
  server, proxy_response_bytes_yb_consensus_ConsensusService_GetConsensusState,
140
  "Bytes received in response to yb.consensus.ConsensusService.GetConsensusState() RPC requests",
141
  yb::MetricUnit::kBytes,
142
  "Bytes received in response to yb.consensus.ConsensusService.GetConsensusState() RPC requests");
143
144
METRIC_DEFINE_counter(
145
  server, proxy_request_bytes_yb_consensus_ConsensusService_StartRemoteBootstrap,
146
  "Bytes sent by yb.consensus.ConsensusService.StartRemoteBootstrap() RPC requests",
147
  yb::MetricUnit::kBytes,
148
  "Bytes sent by yb.consensus.ConsensusService.StartRemoteBootstrap() RPC requests");
149
150
METRIC_DEFINE_counter(
151
  server, proxy_response_bytes_yb_consensus_ConsensusService_StartRemoteBootstrap,
152
  "Bytes received in response to yb.consensus.ConsensusService.StartRemoteBootstrap() RPC requests",
153
  yb::MetricUnit::kBytes,
154
  "Bytes received in response to yb.consensus.ConsensusService.StartRemoteBootstrap() RPC requests");
155
156
namespace yb {
157
namespace consensus {
158
159
160
namespace {
161
162
const std::string kFullConsensusServiceName = "yb.consensus.ConsensusService";
163
164
13.9k
::yb::rpc::ProxyMetricsPtr CreateConsensusServiceMetrics(const scoped_refptr<MetricEntity>& entity) {
165
13.9k
  auto result = std::make_shared<::yb::rpc::ProxyMetricsImpl<12>>();
166
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kUpdateConsensus)] = {
167
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_UpdateConsensus.Instantiate(entity),
168
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_UpdateConsensus.Instantiate(entity)
169
13.9k
  };
170
171
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kMultiRaftUpdateConsensus)] = {
172
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_MultiRaftUpdateConsensus.Instantiate(entity),
173
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_MultiRaftUpdateConsensus.Instantiate(entity)
174
13.9k
  };
175
176
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kRequestConsensusVote)] = {
177
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_RequestConsensusVote.Instantiate(entity),
178
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_RequestConsensusVote.Instantiate(entity)
179
13.9k
  };
180
181
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kChangeConfig)] = {
182
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_ChangeConfig.Instantiate(entity),
183
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_ChangeConfig.Instantiate(entity)
184
13.9k
  };
185
186
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kUnsafeChangeConfig)] = {
187
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_UnsafeChangeConfig.Instantiate(entity),
188
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_UnsafeChangeConfig.Instantiate(entity)
189
13.9k
  };
190
191
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kGetNodeInstance)] = {
192
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_GetNodeInstance.Instantiate(entity),
193
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_GetNodeInstance.Instantiate(entity)
194
13.9k
  };
195
196
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kRunLeaderElection)] = {
197
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_RunLeaderElection.Instantiate(entity),
198
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_RunLeaderElection.Instantiate(entity)
199
13.9k
  };
200
201
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kLeaderElectionLost)] = {
202
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_LeaderElectionLost.Instantiate(entity),
203
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_LeaderElectionLost.Instantiate(entity)
204
13.9k
  };
205
206
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kLeaderStepDown)] = {
207
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_LeaderStepDown.Instantiate(entity),
208
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_LeaderStepDown.Instantiate(entity)
209
13.9k
  };
210
211
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kGetLastOpId)] = {
212
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_GetLastOpId.Instantiate(entity),
213
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_GetLastOpId.Instantiate(entity)
214
13.9k
  };
215
216
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kGetConsensusState)] = {
217
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_GetConsensusState.Instantiate(entity),
218
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_GetConsensusState.Instantiate(entity)
219
13.9k
  };
220
221
13.9k
  result->value[to_underlying(ConsensusServiceRpcMethodIndexes::kStartRemoteBootstrap)] = {
222
13.9k
      METRIC_proxy_request_bytes_yb_consensus_ConsensusService_StartRemoteBootstrap.Instantiate(entity),
223
13.9k
      METRIC_proxy_response_bytes_yb_consensus_ConsensusService_StartRemoteBootstrap.Instantiate(entity)
224
13.9k
  };
225
226
13.9k
  return result;
227
13.9k
}
228
229
230
} // namespace
231
232
ConsensusServiceProxy::ConsensusServiceProxy(
233
    ::yb::rpc::ProxyCache* cache, const ::yb::HostPort& remote,
234
    const ::yb::rpc::Protocol* protocol,
235
    const ::yb::MonoDelta& resolve_cache_timeout)
236
    : ProxyBase(kFullConsensusServiceName, &CreateConsensusServiceMetrics,
237
1.61M
                cache, remote, protocol, resolve_cache_timeout) {}
238
239
::yb::Status ConsensusServiceProxy::UpdateConsensus(
240
106
    const ::yb::consensus::ConsensusRequestPB &req, ::yb::consensus::ConsensusResponsePB *resp, ::yb::rpc::RpcController *controller) const {
241
106
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "UpdateConsensus");
242
106
  return proxy().SyncRequest(
243
106
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kUpdateConsensus)), req, resp, controller);
244
106
}
245
246
void ConsensusServiceProxy::UpdateConsensusAsync(
247
    const ::yb::consensus::ConsensusRequestPB &req, ::yb::consensus::ConsensusResponsePB *resp, ::yb::rpc::RpcController *controller,
248
25.8M
    ::yb::rpc::ResponseCallback callback) const {
249
25.8M
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "UpdateConsensus");
250
25.8M
  proxy().AsyncRequest(
251
25.8M
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kUpdateConsensus)), req, resp, controller, std::move(callback));
252
25.8M
}
253
254
::yb::Status ConsensusServiceProxy::MultiRaftUpdateConsensus(
255
0
    const ::yb::consensus::MultiRaftConsensusRequestPB &req, ::yb::consensus::MultiRaftConsensusResponsePB *resp, ::yb::rpc::RpcController *controller) const {
256
0
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "MultiRaftUpdateConsensus");
257
0
  return proxy().SyncRequest(
258
0
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kMultiRaftUpdateConsensus)), req, resp, controller);
259
0
}
260
261
void ConsensusServiceProxy::MultiRaftUpdateConsensusAsync(
262
    const ::yb::consensus::MultiRaftConsensusRequestPB &req, ::yb::consensus::MultiRaftConsensusResponsePB *resp, ::yb::rpc::RpcController *controller,
263
0
    ::yb::rpc::ResponseCallback callback) const {
264
0
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "MultiRaftUpdateConsensus");
265
0
  proxy().AsyncRequest(
266
0
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kMultiRaftUpdateConsensus)), req, resp, controller, std::move(callback));
267
0
}
268
269
::yb::Status ConsensusServiceProxy::RequestConsensusVote(
270
0
    const ::yb::consensus::VoteRequestPB &req, ::yb::consensus::VoteResponsePB *resp, ::yb::rpc::RpcController *controller) const {
271
0
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "RequestConsensusVote");
272
0
  return proxy().SyncRequest(
273
0
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kRequestConsensusVote)), req, resp, controller);
274
0
}
275
276
void ConsensusServiceProxy::RequestConsensusVoteAsync(
277
    const ::yb::consensus::VoteRequestPB &req, ::yb::consensus::VoteResponsePB *resp, ::yb::rpc::RpcController *controller,
278
1.45M
    ::yb::rpc::ResponseCallback callback) const {
279
1.45M
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "RequestConsensusVote");
280
1.45M
  proxy().AsyncRequest(
281
1.45M
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kRequestConsensusVote)), req, resp, controller, std::move(callback));
282
1.45M
}
283
284
::yb::Status ConsensusServiceProxy::ChangeConfig(
285
61
    const ::yb::consensus::ChangeConfigRequestPB &req, ::yb::consensus::ChangeConfigResponsePB *resp, ::yb::rpc::RpcController *controller) const {
286
61
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "ChangeConfig");
287
61
  return proxy().SyncRequest(
288
61
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kChangeConfig)), req, resp, controller);
289
61
}
290
291
void ConsensusServiceProxy::ChangeConfigAsync(
292
    const ::yb::consensus::ChangeConfigRequestPB &req, ::yb::consensus::ChangeConfigResponsePB *resp, ::yb::rpc::RpcController *controller,
293
5.12k
    ::yb::rpc::ResponseCallback callback) const {
294
5.12k
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "ChangeConfig");
295
5.12k
  proxy().AsyncRequest(
296
5.12k
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kChangeConfig)), req, resp, controller, std::move(callback));
297
5.12k
}
298
299
::yb::Status ConsensusServiceProxy::UnsafeChangeConfig(
300
6
    const ::yb::consensus::UnsafeChangeConfigRequestPB &req, ::yb::consensus::UnsafeChangeConfigResponsePB *resp, ::yb::rpc::RpcController *controller) const {
301
6
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "UnsafeChangeConfig");
302
6
  return proxy().SyncRequest(
303
6
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kUnsafeChangeConfig)), req, resp, controller);
304
6
}
305
306
void ConsensusServiceProxy::UnsafeChangeConfigAsync(
307
    const ::yb::consensus::UnsafeChangeConfigRequestPB &req, ::yb::consensus::UnsafeChangeConfigResponsePB *resp, ::yb::rpc::RpcController *controller,
308
0
    ::yb::rpc::ResponseCallback callback) const {
309
0
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "UnsafeChangeConfig");
310
0
  proxy().AsyncRequest(
311
0
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kUnsafeChangeConfig)), req, resp, controller, std::move(callback));
312
0
}
313
314
::yb::Status ConsensusServiceProxy::GetNodeInstance(
315
0
    const ::yb::consensus::GetNodeInstanceRequestPB &req, ::yb::consensus::GetNodeInstanceResponsePB *resp, ::yb::rpc::RpcController *controller) const {
316
0
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "GetNodeInstance");
317
0
  return proxy().SyncRequest(
318
0
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kGetNodeInstance)), req, resp, controller);
319
0
}
320
321
void ConsensusServiceProxy::GetNodeInstanceAsync(
322
    const ::yb::consensus::GetNodeInstanceRequestPB &req, ::yb::consensus::GetNodeInstanceResponsePB *resp, ::yb::rpc::RpcController *controller,
323
42.6k
    ::yb::rpc::ResponseCallback callback) const {
324
42.6k
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "GetNodeInstance");
325
42.6k
  proxy().AsyncRequest(
326
42.6k
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kGetNodeInstance)), req, resp, controller, std::move(callback));
327
42.6k
}
328
329
::yb::Status ConsensusServiceProxy::RunLeaderElection(
330
100
    const ::yb::consensus::RunLeaderElectionRequestPB &req, ::yb::consensus::RunLeaderElectionResponsePB *resp, ::yb::rpc::RpcController *controller) const {
331
100
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "RunLeaderElection");
332
100
  return proxy().SyncRequest(
333
100
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kRunLeaderElection)), req, resp, controller);
334
100
}
335
336
void ConsensusServiceProxy::RunLeaderElectionAsync(
337
    const ::yb::consensus::RunLeaderElectionRequestPB &req, ::yb::consensus::RunLeaderElectionResponsePB *resp, ::yb::rpc::RpcController *controller,
338
96.2k
    ::yb::rpc::ResponseCallback callback) const {
339
96.2k
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "RunLeaderElection");
340
96.2k
  proxy().AsyncRequest(
341
96.2k
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kRunLeaderElection)), req, resp, controller, std::move(callback));
342
96.2k
}
343
344
::yb::Status ConsensusServiceProxy::LeaderElectionLost(
345
0
    const ::yb::consensus::LeaderElectionLostRequestPB &req, ::yb::consensus::LeaderElectionLostResponsePB *resp, ::yb::rpc::RpcController *controller) const {
346
0
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "LeaderElectionLost");
347
0
  return proxy().SyncRequest(
348
0
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kLeaderElectionLost)), req, resp, controller);
349
0
}
350
351
void ConsensusServiceProxy::LeaderElectionLostAsync(
352
    const ::yb::consensus::LeaderElectionLostRequestPB &req, ::yb::consensus::LeaderElectionLostResponsePB *resp, ::yb::rpc::RpcController *controller,
353
77
    ::yb::rpc::ResponseCallback callback) const {
354
77
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "LeaderElectionLost");
355
77
  proxy().AsyncRequest(
356
77
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kLeaderElectionLost)), req, resp, controller, std::move(callback));
357
77
}
358
359
::yb::Status ConsensusServiceProxy::LeaderStepDown(
360
27
    const ::yb::consensus::LeaderStepDownRequestPB &req, ::yb::consensus::LeaderStepDownResponsePB *resp, ::yb::rpc::RpcController *controller) const {
361
27
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "LeaderStepDown");
362
27
  return proxy().SyncRequest(
363
27
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kLeaderStepDown)), req, resp, controller);
364
27
}
365
366
void ConsensusServiceProxy::LeaderStepDownAsync(
367
    const ::yb::consensus::LeaderStepDownRequestPB &req, ::yb::consensus::LeaderStepDownResponsePB *resp, ::yb::rpc::RpcController *controller,
368
54.0k
    ::yb::rpc::ResponseCallback callback) const {
369
54.0k
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "LeaderStepDown");
370
54.0k
  proxy().AsyncRequest(
371
54.0k
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kLeaderStepDown)), req, resp, controller, std::move(callback));
372
54.0k
}
373
374
::yb::Status ConsensusServiceProxy::GetLastOpId(
375
601
    const ::yb::consensus::GetLastOpIdRequestPB &req, ::yb::consensus::GetLastOpIdResponsePB *resp, ::yb::rpc::RpcController *controller) const {
376
601
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "GetLastOpId");
377
601
  return proxy().SyncRequest(
378
601
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kGetLastOpId)), req, resp, controller);
379
601
}
380
381
void ConsensusServiceProxy::GetLastOpIdAsync(
382
    const ::yb::consensus::GetLastOpIdRequestPB &req, ::yb::consensus::GetLastOpIdResponsePB *resp, ::yb::rpc::RpcController *controller,
383
0
    ::yb::rpc::ResponseCallback callback) const {
384
0
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "GetLastOpId");
385
0
  proxy().AsyncRequest(
386
0
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kGetLastOpId)), req, resp, controller, std::move(callback));
387
0
}
388
389
::yb::Status ConsensusServiceProxy::GetConsensusState(
390
4.18k
    const ::yb::consensus::GetConsensusStateRequestPB &req, ::yb::consensus::GetConsensusStateResponsePB *resp, ::yb::rpc::RpcController *controller) const {
391
4.18k
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "GetConsensusState");
392
4.18k
  return proxy().SyncRequest(
393
4.18k
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kGetConsensusState)), req, resp, controller);
394
4.18k
}
395
396
void ConsensusServiceProxy::GetConsensusStateAsync(
397
    const ::yb::consensus::GetConsensusStateRequestPB &req, ::yb::consensus::GetConsensusStateResponsePB *resp, ::yb::rpc::RpcController *controller,
398
0
    ::yb::rpc::ResponseCallback callback) const {
399
0
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "GetConsensusState");
400
0
  proxy().AsyncRequest(
401
0
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kGetConsensusState)), req, resp, controller, std::move(callback));
402
0
}
403
404
::yb::Status ConsensusServiceProxy::StartRemoteBootstrap(
405
1
    const ::yb::consensus::StartRemoteBootstrapRequestPB &req, ::yb::consensus::StartRemoteBootstrapResponsePB *resp, ::yb::rpc::RpcController *controller) const {
406
1
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "StartRemoteBootstrap");
407
1
  return proxy().SyncRequest(
408
1
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kStartRemoteBootstrap)), req, resp, controller);
409
1
}
410
411
void ConsensusServiceProxy::StartRemoteBootstrapAsync(
412
    const ::yb::consensus::StartRemoteBootstrapRequestPB &req, ::yb::consensus::StartRemoteBootstrapResponsePB *resp, ::yb::rpc::RpcController *controller,
413
10.6k
    ::yb::rpc::ResponseCallback callback) const {
414
10.6k
  static ::yb::rpc::RemoteMethod method("yb.consensus.ConsensusService", "StartRemoteBootstrap");
415
10.6k
  proxy().AsyncRequest(
416
10.6k
      &method, metrics<12>(static_cast<size_t>(ConsensusServiceRpcMethodIndexes::kStartRemoteBootstrap)), req, resp, controller, std::move(callback));
417
10.6k
}
418
419
} // namespace consensus
420
} // namespace yb