/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/tserver/pg_client.proxy.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // THIS FILE IS AUTOGENERATED FROM yb/tserver/pg_client.proto |
2 | | |
3 | | #include "yb/tserver/pg_client.proxy.h" |
4 | | |
5 | | #include "yb/tserver/pg_client.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_tserver_PgClientService_Heartbeat, |
14 | | "Bytes sent by yb.tserver.PgClientService.Heartbeat() RPC requests", |
15 | | yb::MetricUnit::kBytes, |
16 | | "Bytes sent by yb.tserver.PgClientService.Heartbeat() RPC requests"); |
17 | | |
18 | | METRIC_DEFINE_counter( |
19 | | server, proxy_response_bytes_yb_tserver_PgClientService_Heartbeat, |
20 | | "Bytes received in response to yb.tserver.PgClientService.Heartbeat() RPC requests", |
21 | | yb::MetricUnit::kBytes, |
22 | | "Bytes received in response to yb.tserver.PgClientService.Heartbeat() RPC requests"); |
23 | | |
24 | | METRIC_DEFINE_counter( |
25 | | server, proxy_request_bytes_yb_tserver_PgClientService_AlterDatabase, |
26 | | "Bytes sent by yb.tserver.PgClientService.AlterDatabase() RPC requests", |
27 | | yb::MetricUnit::kBytes, |
28 | | "Bytes sent by yb.tserver.PgClientService.AlterDatabase() RPC requests"); |
29 | | |
30 | | METRIC_DEFINE_counter( |
31 | | server, proxy_response_bytes_yb_tserver_PgClientService_AlterDatabase, |
32 | | "Bytes received in response to yb.tserver.PgClientService.AlterDatabase() RPC requests", |
33 | | yb::MetricUnit::kBytes, |
34 | | "Bytes received in response to yb.tserver.PgClientService.AlterDatabase() RPC requests"); |
35 | | |
36 | | METRIC_DEFINE_counter( |
37 | | server, proxy_request_bytes_yb_tserver_PgClientService_AlterTable, |
38 | | "Bytes sent by yb.tserver.PgClientService.AlterTable() RPC requests", |
39 | | yb::MetricUnit::kBytes, |
40 | | "Bytes sent by yb.tserver.PgClientService.AlterTable() RPC requests"); |
41 | | |
42 | | METRIC_DEFINE_counter( |
43 | | server, proxy_response_bytes_yb_tserver_PgClientService_AlterTable, |
44 | | "Bytes received in response to yb.tserver.PgClientService.AlterTable() RPC requests", |
45 | | yb::MetricUnit::kBytes, |
46 | | "Bytes received in response to yb.tserver.PgClientService.AlterTable() RPC requests"); |
47 | | |
48 | | METRIC_DEFINE_counter( |
49 | | server, proxy_request_bytes_yb_tserver_PgClientService_BackfillIndex, |
50 | | "Bytes sent by yb.tserver.PgClientService.BackfillIndex() RPC requests", |
51 | | yb::MetricUnit::kBytes, |
52 | | "Bytes sent by yb.tserver.PgClientService.BackfillIndex() RPC requests"); |
53 | | |
54 | | METRIC_DEFINE_counter( |
55 | | server, proxy_response_bytes_yb_tserver_PgClientService_BackfillIndex, |
56 | | "Bytes received in response to yb.tserver.PgClientService.BackfillIndex() RPC requests", |
57 | | yb::MetricUnit::kBytes, |
58 | | "Bytes received in response to yb.tserver.PgClientService.BackfillIndex() RPC requests"); |
59 | | |
60 | | METRIC_DEFINE_counter( |
61 | | server, proxy_request_bytes_yb_tserver_PgClientService_CreateDatabase, |
62 | | "Bytes sent by yb.tserver.PgClientService.CreateDatabase() RPC requests", |
63 | | yb::MetricUnit::kBytes, |
64 | | "Bytes sent by yb.tserver.PgClientService.CreateDatabase() RPC requests"); |
65 | | |
66 | | METRIC_DEFINE_counter( |
67 | | server, proxy_response_bytes_yb_tserver_PgClientService_CreateDatabase, |
68 | | "Bytes received in response to yb.tserver.PgClientService.CreateDatabase() RPC requests", |
69 | | yb::MetricUnit::kBytes, |
70 | | "Bytes received in response to yb.tserver.PgClientService.CreateDatabase() RPC requests"); |
71 | | |
72 | | METRIC_DEFINE_counter( |
73 | | server, proxy_request_bytes_yb_tserver_PgClientService_CreateSequencesDataTable, |
74 | | "Bytes sent by yb.tserver.PgClientService.CreateSequencesDataTable() RPC requests", |
75 | | yb::MetricUnit::kBytes, |
76 | | "Bytes sent by yb.tserver.PgClientService.CreateSequencesDataTable() RPC requests"); |
77 | | |
78 | | METRIC_DEFINE_counter( |
79 | | server, proxy_response_bytes_yb_tserver_PgClientService_CreateSequencesDataTable, |
80 | | "Bytes received in response to yb.tserver.PgClientService.CreateSequencesDataTable() RPC requests", |
81 | | yb::MetricUnit::kBytes, |
82 | | "Bytes received in response to yb.tserver.PgClientService.CreateSequencesDataTable() RPC requests"); |
83 | | |
84 | | METRIC_DEFINE_counter( |
85 | | server, proxy_request_bytes_yb_tserver_PgClientService_CreateTable, |
86 | | "Bytes sent by yb.tserver.PgClientService.CreateTable() RPC requests", |
87 | | yb::MetricUnit::kBytes, |
88 | | "Bytes sent by yb.tserver.PgClientService.CreateTable() RPC requests"); |
89 | | |
90 | | METRIC_DEFINE_counter( |
91 | | server, proxy_response_bytes_yb_tserver_PgClientService_CreateTable, |
92 | | "Bytes received in response to yb.tserver.PgClientService.CreateTable() RPC requests", |
93 | | yb::MetricUnit::kBytes, |
94 | | "Bytes received in response to yb.tserver.PgClientService.CreateTable() RPC requests"); |
95 | | |
96 | | METRIC_DEFINE_counter( |
97 | | server, proxy_request_bytes_yb_tserver_PgClientService_CreateTablegroup, |
98 | | "Bytes sent by yb.tserver.PgClientService.CreateTablegroup() RPC requests", |
99 | | yb::MetricUnit::kBytes, |
100 | | "Bytes sent by yb.tserver.PgClientService.CreateTablegroup() RPC requests"); |
101 | | |
102 | | METRIC_DEFINE_counter( |
103 | | server, proxy_response_bytes_yb_tserver_PgClientService_CreateTablegroup, |
104 | | "Bytes received in response to yb.tserver.PgClientService.CreateTablegroup() RPC requests", |
105 | | yb::MetricUnit::kBytes, |
106 | | "Bytes received in response to yb.tserver.PgClientService.CreateTablegroup() RPC requests"); |
107 | | |
108 | | METRIC_DEFINE_counter( |
109 | | server, proxy_request_bytes_yb_tserver_PgClientService_DropDatabase, |
110 | | "Bytes sent by yb.tserver.PgClientService.DropDatabase() RPC requests", |
111 | | yb::MetricUnit::kBytes, |
112 | | "Bytes sent by yb.tserver.PgClientService.DropDatabase() RPC requests"); |
113 | | |
114 | | METRIC_DEFINE_counter( |
115 | | server, proxy_response_bytes_yb_tserver_PgClientService_DropDatabase, |
116 | | "Bytes received in response to yb.tserver.PgClientService.DropDatabase() RPC requests", |
117 | | yb::MetricUnit::kBytes, |
118 | | "Bytes received in response to yb.tserver.PgClientService.DropDatabase() RPC requests"); |
119 | | |
120 | | METRIC_DEFINE_counter( |
121 | | server, proxy_request_bytes_yb_tserver_PgClientService_DropTable, |
122 | | "Bytes sent by yb.tserver.PgClientService.DropTable() RPC requests", |
123 | | yb::MetricUnit::kBytes, |
124 | | "Bytes sent by yb.tserver.PgClientService.DropTable() RPC requests"); |
125 | | |
126 | | METRIC_DEFINE_counter( |
127 | | server, proxy_response_bytes_yb_tserver_PgClientService_DropTable, |
128 | | "Bytes received in response to yb.tserver.PgClientService.DropTable() RPC requests", |
129 | | yb::MetricUnit::kBytes, |
130 | | "Bytes received in response to yb.tserver.PgClientService.DropTable() RPC requests"); |
131 | | |
132 | | METRIC_DEFINE_counter( |
133 | | server, proxy_request_bytes_yb_tserver_PgClientService_DropTablegroup, |
134 | | "Bytes sent by yb.tserver.PgClientService.DropTablegroup() RPC requests", |
135 | | yb::MetricUnit::kBytes, |
136 | | "Bytes sent by yb.tserver.PgClientService.DropTablegroup() RPC requests"); |
137 | | |
138 | | METRIC_DEFINE_counter( |
139 | | server, proxy_response_bytes_yb_tserver_PgClientService_DropTablegroup, |
140 | | "Bytes received in response to yb.tserver.PgClientService.DropTablegroup() RPC requests", |
141 | | yb::MetricUnit::kBytes, |
142 | | "Bytes received in response to yb.tserver.PgClientService.DropTablegroup() RPC requests"); |
143 | | |
144 | | METRIC_DEFINE_counter( |
145 | | server, proxy_request_bytes_yb_tserver_PgClientService_FinishTransaction, |
146 | | "Bytes sent by yb.tserver.PgClientService.FinishTransaction() RPC requests", |
147 | | yb::MetricUnit::kBytes, |
148 | | "Bytes sent by yb.tserver.PgClientService.FinishTransaction() RPC requests"); |
149 | | |
150 | | METRIC_DEFINE_counter( |
151 | | server, proxy_response_bytes_yb_tserver_PgClientService_FinishTransaction, |
152 | | "Bytes received in response to yb.tserver.PgClientService.FinishTransaction() RPC requests", |
153 | | yb::MetricUnit::kBytes, |
154 | | "Bytes received in response to yb.tserver.PgClientService.FinishTransaction() RPC requests"); |
155 | | |
156 | | METRIC_DEFINE_counter( |
157 | | server, proxy_request_bytes_yb_tserver_PgClientService_GetCatalogMasterVersion, |
158 | | "Bytes sent by yb.tserver.PgClientService.GetCatalogMasterVersion() RPC requests", |
159 | | yb::MetricUnit::kBytes, |
160 | | "Bytes sent by yb.tserver.PgClientService.GetCatalogMasterVersion() RPC requests"); |
161 | | |
162 | | METRIC_DEFINE_counter( |
163 | | server, proxy_response_bytes_yb_tserver_PgClientService_GetCatalogMasterVersion, |
164 | | "Bytes received in response to yb.tserver.PgClientService.GetCatalogMasterVersion() RPC requests", |
165 | | yb::MetricUnit::kBytes, |
166 | | "Bytes received in response to yb.tserver.PgClientService.GetCatalogMasterVersion() RPC requests"); |
167 | | |
168 | | METRIC_DEFINE_counter( |
169 | | server, proxy_request_bytes_yb_tserver_PgClientService_GetDatabaseInfo, |
170 | | "Bytes sent by yb.tserver.PgClientService.GetDatabaseInfo() RPC requests", |
171 | | yb::MetricUnit::kBytes, |
172 | | "Bytes sent by yb.tserver.PgClientService.GetDatabaseInfo() RPC requests"); |
173 | | |
174 | | METRIC_DEFINE_counter( |
175 | | server, proxy_response_bytes_yb_tserver_PgClientService_GetDatabaseInfo, |
176 | | "Bytes received in response to yb.tserver.PgClientService.GetDatabaseInfo() RPC requests", |
177 | | yb::MetricUnit::kBytes, |
178 | | "Bytes received in response to yb.tserver.PgClientService.GetDatabaseInfo() RPC requests"); |
179 | | |
180 | | METRIC_DEFINE_counter( |
181 | | server, proxy_request_bytes_yb_tserver_PgClientService_IsInitDbDone, |
182 | | "Bytes sent by yb.tserver.PgClientService.IsInitDbDone() RPC requests", |
183 | | yb::MetricUnit::kBytes, |
184 | | "Bytes sent by yb.tserver.PgClientService.IsInitDbDone() RPC requests"); |
185 | | |
186 | | METRIC_DEFINE_counter( |
187 | | server, proxy_response_bytes_yb_tserver_PgClientService_IsInitDbDone, |
188 | | "Bytes received in response to yb.tserver.PgClientService.IsInitDbDone() RPC requests", |
189 | | yb::MetricUnit::kBytes, |
190 | | "Bytes received in response to yb.tserver.PgClientService.IsInitDbDone() RPC requests"); |
191 | | |
192 | | METRIC_DEFINE_counter( |
193 | | server, proxy_request_bytes_yb_tserver_PgClientService_ListLiveTabletServers, |
194 | | "Bytes sent by yb.tserver.PgClientService.ListLiveTabletServers() RPC requests", |
195 | | yb::MetricUnit::kBytes, |
196 | | "Bytes sent by yb.tserver.PgClientService.ListLiveTabletServers() RPC requests"); |
197 | | |
198 | | METRIC_DEFINE_counter( |
199 | | server, proxy_response_bytes_yb_tserver_PgClientService_ListLiveTabletServers, |
200 | | "Bytes received in response to yb.tserver.PgClientService.ListLiveTabletServers() RPC requests", |
201 | | yb::MetricUnit::kBytes, |
202 | | "Bytes received in response to yb.tserver.PgClientService.ListLiveTabletServers() RPC requests"); |
203 | | |
204 | | METRIC_DEFINE_counter( |
205 | | server, proxy_request_bytes_yb_tserver_PgClientService_OpenTable, |
206 | | "Bytes sent by yb.tserver.PgClientService.OpenTable() RPC requests", |
207 | | yb::MetricUnit::kBytes, |
208 | | "Bytes sent by yb.tserver.PgClientService.OpenTable() RPC requests"); |
209 | | |
210 | | METRIC_DEFINE_counter( |
211 | | server, proxy_response_bytes_yb_tserver_PgClientService_OpenTable, |
212 | | "Bytes received in response to yb.tserver.PgClientService.OpenTable() RPC requests", |
213 | | yb::MetricUnit::kBytes, |
214 | | "Bytes received in response to yb.tserver.PgClientService.OpenTable() RPC requests"); |
215 | | |
216 | | METRIC_DEFINE_counter( |
217 | | server, proxy_request_bytes_yb_tserver_PgClientService_Perform, |
218 | | "Bytes sent by yb.tserver.PgClientService.Perform() RPC requests", |
219 | | yb::MetricUnit::kBytes, |
220 | | "Bytes sent by yb.tserver.PgClientService.Perform() RPC requests"); |
221 | | |
222 | | METRIC_DEFINE_counter( |
223 | | server, proxy_response_bytes_yb_tserver_PgClientService_Perform, |
224 | | "Bytes received in response to yb.tserver.PgClientService.Perform() RPC requests", |
225 | | yb::MetricUnit::kBytes, |
226 | | "Bytes received in response to yb.tserver.PgClientService.Perform() RPC requests"); |
227 | | |
228 | | METRIC_DEFINE_counter( |
229 | | server, proxy_request_bytes_yb_tserver_PgClientService_ReserveOids, |
230 | | "Bytes sent by yb.tserver.PgClientService.ReserveOids() RPC requests", |
231 | | yb::MetricUnit::kBytes, |
232 | | "Bytes sent by yb.tserver.PgClientService.ReserveOids() RPC requests"); |
233 | | |
234 | | METRIC_DEFINE_counter( |
235 | | server, proxy_response_bytes_yb_tserver_PgClientService_ReserveOids, |
236 | | "Bytes received in response to yb.tserver.PgClientService.ReserveOids() RPC requests", |
237 | | yb::MetricUnit::kBytes, |
238 | | "Bytes received in response to yb.tserver.PgClientService.ReserveOids() RPC requests"); |
239 | | |
240 | | METRIC_DEFINE_counter( |
241 | | server, proxy_request_bytes_yb_tserver_PgClientService_RollbackSubTransaction, |
242 | | "Bytes sent by yb.tserver.PgClientService.RollbackSubTransaction() RPC requests", |
243 | | yb::MetricUnit::kBytes, |
244 | | "Bytes sent by yb.tserver.PgClientService.RollbackSubTransaction() RPC requests"); |
245 | | |
246 | | METRIC_DEFINE_counter( |
247 | | server, proxy_response_bytes_yb_tserver_PgClientService_RollbackSubTransaction, |
248 | | "Bytes received in response to yb.tserver.PgClientService.RollbackSubTransaction() RPC requests", |
249 | | yb::MetricUnit::kBytes, |
250 | | "Bytes received in response to yb.tserver.PgClientService.RollbackSubTransaction() RPC requests"); |
251 | | |
252 | | METRIC_DEFINE_counter( |
253 | | server, proxy_request_bytes_yb_tserver_PgClientService_SetActiveSubTransaction, |
254 | | "Bytes sent by yb.tserver.PgClientService.SetActiveSubTransaction() RPC requests", |
255 | | yb::MetricUnit::kBytes, |
256 | | "Bytes sent by yb.tserver.PgClientService.SetActiveSubTransaction() RPC requests"); |
257 | | |
258 | | METRIC_DEFINE_counter( |
259 | | server, proxy_response_bytes_yb_tserver_PgClientService_SetActiveSubTransaction, |
260 | | "Bytes received in response to yb.tserver.PgClientService.SetActiveSubTransaction() RPC requests", |
261 | | yb::MetricUnit::kBytes, |
262 | | "Bytes received in response to yb.tserver.PgClientService.SetActiveSubTransaction() RPC requests"); |
263 | | |
264 | | METRIC_DEFINE_counter( |
265 | | server, proxy_request_bytes_yb_tserver_PgClientService_TabletServerCount, |
266 | | "Bytes sent by yb.tserver.PgClientService.TabletServerCount() RPC requests", |
267 | | yb::MetricUnit::kBytes, |
268 | | "Bytes sent by yb.tserver.PgClientService.TabletServerCount() RPC requests"); |
269 | | |
270 | | METRIC_DEFINE_counter( |
271 | | server, proxy_response_bytes_yb_tserver_PgClientService_TabletServerCount, |
272 | | "Bytes received in response to yb.tserver.PgClientService.TabletServerCount() RPC requests", |
273 | | yb::MetricUnit::kBytes, |
274 | | "Bytes received in response to yb.tserver.PgClientService.TabletServerCount() RPC requests"); |
275 | | |
276 | | METRIC_DEFINE_counter( |
277 | | server, proxy_request_bytes_yb_tserver_PgClientService_TruncateTable, |
278 | | "Bytes sent by yb.tserver.PgClientService.TruncateTable() RPC requests", |
279 | | yb::MetricUnit::kBytes, |
280 | | "Bytes sent by yb.tserver.PgClientService.TruncateTable() RPC requests"); |
281 | | |
282 | | METRIC_DEFINE_counter( |
283 | | server, proxy_response_bytes_yb_tserver_PgClientService_TruncateTable, |
284 | | "Bytes received in response to yb.tserver.PgClientService.TruncateTable() RPC requests", |
285 | | yb::MetricUnit::kBytes, |
286 | | "Bytes received in response to yb.tserver.PgClientService.TruncateTable() RPC requests"); |
287 | | |
288 | | METRIC_DEFINE_counter( |
289 | | server, proxy_request_bytes_yb_tserver_PgClientService_ValidatePlacement, |
290 | | "Bytes sent by yb.tserver.PgClientService.ValidatePlacement() RPC requests", |
291 | | yb::MetricUnit::kBytes, |
292 | | "Bytes sent by yb.tserver.PgClientService.ValidatePlacement() RPC requests"); |
293 | | |
294 | | METRIC_DEFINE_counter( |
295 | | server, proxy_response_bytes_yb_tserver_PgClientService_ValidatePlacement, |
296 | | "Bytes received in response to yb.tserver.PgClientService.ValidatePlacement() RPC requests", |
297 | | yb::MetricUnit::kBytes, |
298 | | "Bytes received in response to yb.tserver.PgClientService.ValidatePlacement() RPC requests"); |
299 | | |
300 | | namespace yb { |
301 | | namespace tserver { |
302 | | |
303 | | |
304 | | namespace { |
305 | | |
306 | | const std::string kFullPgClientServiceName = "yb.tserver.PgClientService"; |
307 | | |
308 | 1.65k | ::yb::rpc::ProxyMetricsPtr CreatePgClientServiceMetrics(const scoped_refptr<MetricEntity>& entity) { |
309 | 1.65k | auto result = std::make_shared<::yb::rpc::ProxyMetricsImpl<24>>(); |
310 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kHeartbeat)] = { |
311 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_Heartbeat.Instantiate(entity), |
312 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_Heartbeat.Instantiate(entity) |
313 | 1.65k | }; |
314 | | |
315 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kAlterDatabase)] = { |
316 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_AlterDatabase.Instantiate(entity), |
317 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_AlterDatabase.Instantiate(entity) |
318 | 1.65k | }; |
319 | | |
320 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kAlterTable)] = { |
321 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_AlterTable.Instantiate(entity), |
322 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_AlterTable.Instantiate(entity) |
323 | 1.65k | }; |
324 | | |
325 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kBackfillIndex)] = { |
326 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_BackfillIndex.Instantiate(entity), |
327 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_BackfillIndex.Instantiate(entity) |
328 | 1.65k | }; |
329 | | |
330 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kCreateDatabase)] = { |
331 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_CreateDatabase.Instantiate(entity), |
332 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_CreateDatabase.Instantiate(entity) |
333 | 1.65k | }; |
334 | | |
335 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kCreateSequencesDataTable)] = { |
336 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_CreateSequencesDataTable.Instantiate(entity), |
337 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_CreateSequencesDataTable.Instantiate(entity) |
338 | 1.65k | }; |
339 | | |
340 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kCreateTable)] = { |
341 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_CreateTable.Instantiate(entity), |
342 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_CreateTable.Instantiate(entity) |
343 | 1.65k | }; |
344 | | |
345 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kCreateTablegroup)] = { |
346 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_CreateTablegroup.Instantiate(entity), |
347 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_CreateTablegroup.Instantiate(entity) |
348 | 1.65k | }; |
349 | | |
350 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kDropDatabase)] = { |
351 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_DropDatabase.Instantiate(entity), |
352 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_DropDatabase.Instantiate(entity) |
353 | 1.65k | }; |
354 | | |
355 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kDropTable)] = { |
356 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_DropTable.Instantiate(entity), |
357 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_DropTable.Instantiate(entity) |
358 | 1.65k | }; |
359 | | |
360 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kDropTablegroup)] = { |
361 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_DropTablegroup.Instantiate(entity), |
362 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_DropTablegroup.Instantiate(entity) |
363 | 1.65k | }; |
364 | | |
365 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kFinishTransaction)] = { |
366 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_FinishTransaction.Instantiate(entity), |
367 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_FinishTransaction.Instantiate(entity) |
368 | 1.65k | }; |
369 | | |
370 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kGetCatalogMasterVersion)] = { |
371 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_GetCatalogMasterVersion.Instantiate(entity), |
372 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_GetCatalogMasterVersion.Instantiate(entity) |
373 | 1.65k | }; |
374 | | |
375 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kGetDatabaseInfo)] = { |
376 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_GetDatabaseInfo.Instantiate(entity), |
377 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_GetDatabaseInfo.Instantiate(entity) |
378 | 1.65k | }; |
379 | | |
380 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kIsInitDbDone)] = { |
381 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_IsInitDbDone.Instantiate(entity), |
382 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_IsInitDbDone.Instantiate(entity) |
383 | 1.65k | }; |
384 | | |
385 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kListLiveTabletServers)] = { |
386 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_ListLiveTabletServers.Instantiate(entity), |
387 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_ListLiveTabletServers.Instantiate(entity) |
388 | 1.65k | }; |
389 | | |
390 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kOpenTable)] = { |
391 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_OpenTable.Instantiate(entity), |
392 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_OpenTable.Instantiate(entity) |
393 | 1.65k | }; |
394 | | |
395 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kPerform)] = { |
396 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_Perform.Instantiate(entity), |
397 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_Perform.Instantiate(entity) |
398 | 1.65k | }; |
399 | | |
400 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kReserveOids)] = { |
401 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_ReserveOids.Instantiate(entity), |
402 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_ReserveOids.Instantiate(entity) |
403 | 1.65k | }; |
404 | | |
405 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kRollbackSubTransaction)] = { |
406 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_RollbackSubTransaction.Instantiate(entity), |
407 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_RollbackSubTransaction.Instantiate(entity) |
408 | 1.65k | }; |
409 | | |
410 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kSetActiveSubTransaction)] = { |
411 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_SetActiveSubTransaction.Instantiate(entity), |
412 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_SetActiveSubTransaction.Instantiate(entity) |
413 | 1.65k | }; |
414 | | |
415 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kTabletServerCount)] = { |
416 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_TabletServerCount.Instantiate(entity), |
417 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_TabletServerCount.Instantiate(entity) |
418 | 1.65k | }; |
419 | | |
420 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kTruncateTable)] = { |
421 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_TruncateTable.Instantiate(entity), |
422 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_TruncateTable.Instantiate(entity) |
423 | 1.65k | }; |
424 | | |
425 | 1.65k | result->value[to_underlying(PgClientServiceRpcMethodIndexes::kValidatePlacement)] = { |
426 | 1.65k | METRIC_proxy_request_bytes_yb_tserver_PgClientService_ValidatePlacement.Instantiate(entity), |
427 | 1.65k | METRIC_proxy_response_bytes_yb_tserver_PgClientService_ValidatePlacement.Instantiate(entity) |
428 | 1.65k | }; |
429 | | |
430 | 1.65k | return result; |
431 | 1.65k | } |
432 | | |
433 | | |
434 | | } // namespace |
435 | | |
436 | | PgClientServiceProxy::PgClientServiceProxy( |
437 | | ::yb::rpc::ProxyCache* cache, const ::yb::HostPort& remote, |
438 | | const ::yb::rpc::Protocol* protocol, |
439 | | const ::yb::MonoDelta& resolve_cache_timeout) |
440 | | : ProxyBase(kFullPgClientServiceName, &CreatePgClientServiceMetrics, |
441 | 1.65k | cache, remote, protocol, resolve_cache_timeout) {} |
442 | | |
443 | | ::yb::Status PgClientServiceProxy::Heartbeat( |
444 | 0 | const ::yb::tserver::PgHeartbeatRequestPB &req, ::yb::tserver::PgHeartbeatResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
445 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "Heartbeat"); |
446 | 0 | return proxy().SyncRequest( |
447 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kHeartbeat)), req, resp, controller); |
448 | 0 | } |
449 | | |
450 | | void PgClientServiceProxy::HeartbeatAsync( |
451 | | const ::yb::tserver::PgHeartbeatRequestPB &req, ::yb::tserver::PgHeartbeatResponsePB *resp, ::yb::rpc::RpcController *controller, |
452 | 2.74k | ::yb::rpc::ResponseCallback callback) const { |
453 | 2.74k | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "Heartbeat"); |
454 | 2.74k | proxy().AsyncRequest( |
455 | 2.74k | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kHeartbeat)), req, resp, controller, std::move(callback)); |
456 | 2.74k | } |
457 | | |
458 | | ::yb::Status PgClientServiceProxy::AlterDatabase( |
459 | 0 | const ::yb::tserver::PgAlterDatabaseRequestPB &req, ::yb::tserver::PgAlterDatabaseResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
460 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "AlterDatabase"); |
461 | 0 | return proxy().SyncRequest( |
462 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kAlterDatabase)), req, resp, controller); |
463 | 0 | } |
464 | | |
465 | | void PgClientServiceProxy::AlterDatabaseAsync( |
466 | | const ::yb::tserver::PgAlterDatabaseRequestPB &req, ::yb::tserver::PgAlterDatabaseResponsePB *resp, ::yb::rpc::RpcController *controller, |
467 | 0 | ::yb::rpc::ResponseCallback callback) const { |
468 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "AlterDatabase"); |
469 | 0 | proxy().AsyncRequest( |
470 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kAlterDatabase)), req, resp, controller, std::move(callback)); |
471 | 0 | } |
472 | | |
473 | | ::yb::Status PgClientServiceProxy::AlterTable( |
474 | 155 | const ::yb::tserver::PgAlterTableRequestPB &req, ::yb::tserver::PgAlterTableResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
475 | 155 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "AlterTable"); |
476 | 155 | return proxy().SyncRequest( |
477 | 155 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kAlterTable)), req, resp, controller); |
478 | 155 | } |
479 | | |
480 | | void PgClientServiceProxy::AlterTableAsync( |
481 | | const ::yb::tserver::PgAlterTableRequestPB &req, ::yb::tserver::PgAlterTableResponsePB *resp, ::yb::rpc::RpcController *controller, |
482 | 0 | ::yb::rpc::ResponseCallback callback) const { |
483 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "AlterTable"); |
484 | 0 | proxy().AsyncRequest( |
485 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kAlterTable)), req, resp, controller, std::move(callback)); |
486 | 0 | } |
487 | | |
488 | | ::yb::Status PgClientServiceProxy::BackfillIndex( |
489 | 89 | const ::yb::tserver::PgBackfillIndexRequestPB &req, ::yb::tserver::PgBackfillIndexResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
490 | 89 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "BackfillIndex"); |
491 | 89 | return proxy().SyncRequest( |
492 | 89 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kBackfillIndex)), req, resp, controller); |
493 | 89 | } |
494 | | |
495 | | void PgClientServiceProxy::BackfillIndexAsync( |
496 | | const ::yb::tserver::PgBackfillIndexRequestPB &req, ::yb::tserver::PgBackfillIndexResponsePB *resp, ::yb::rpc::RpcController *controller, |
497 | 0 | ::yb::rpc::ResponseCallback callback) const { |
498 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "BackfillIndex"); |
499 | 0 | proxy().AsyncRequest( |
500 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kBackfillIndex)), req, resp, controller, std::move(callback)); |
501 | 0 | } |
502 | | |
503 | | ::yb::Status PgClientServiceProxy::CreateDatabase( |
504 | 22 | const ::yb::tserver::PgCreateDatabaseRequestPB &req, ::yb::tserver::PgCreateDatabaseResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
505 | 22 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "CreateDatabase"); |
506 | 22 | return proxy().SyncRequest( |
507 | 22 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kCreateDatabase)), req, resp, controller); |
508 | 22 | } |
509 | | |
510 | | void PgClientServiceProxy::CreateDatabaseAsync( |
511 | | const ::yb::tserver::PgCreateDatabaseRequestPB &req, ::yb::tserver::PgCreateDatabaseResponsePB *resp, ::yb::rpc::RpcController *controller, |
512 | 0 | ::yb::rpc::ResponseCallback callback) const { |
513 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "CreateDatabase"); |
514 | 0 | proxy().AsyncRequest( |
515 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kCreateDatabase)), req, resp, controller, std::move(callback)); |
516 | 0 | } |
517 | | |
518 | | ::yb::Status PgClientServiceProxy::CreateSequencesDataTable( |
519 | 21 | const ::yb::tserver::PgCreateSequencesDataTableRequestPB &req, ::yb::tserver::PgCreateSequencesDataTableResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
520 | 21 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "CreateSequencesDataTable"); |
521 | 21 | return proxy().SyncRequest( |
522 | 21 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kCreateSequencesDataTable)), req, resp, controller); |
523 | 21 | } |
524 | | |
525 | | void PgClientServiceProxy::CreateSequencesDataTableAsync( |
526 | | const ::yb::tserver::PgCreateSequencesDataTableRequestPB &req, ::yb::tserver::PgCreateSequencesDataTableResponsePB *resp, ::yb::rpc::RpcController *controller, |
527 | 0 | ::yb::rpc::ResponseCallback callback) const { |
528 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "CreateSequencesDataTable"); |
529 | 0 | proxy().AsyncRequest( |
530 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kCreateSequencesDataTable)), req, resp, controller, std::move(callback)); |
531 | 0 | } |
532 | | |
533 | | ::yb::Status PgClientServiceProxy::CreateTable( |
534 | 1.41k | const ::yb::tserver::PgCreateTableRequestPB &req, ::yb::tserver::PgCreateTableResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
535 | 1.41k | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "CreateTable"); |
536 | 1.41k | return proxy().SyncRequest( |
537 | 1.41k | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kCreateTable)), req, resp, controller); |
538 | 1.41k | } |
539 | | |
540 | | void PgClientServiceProxy::CreateTableAsync( |
541 | | const ::yb::tserver::PgCreateTableRequestPB &req, ::yb::tserver::PgCreateTableResponsePB *resp, ::yb::rpc::RpcController *controller, |
542 | 0 | ::yb::rpc::ResponseCallback callback) const { |
543 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "CreateTable"); |
544 | 0 | proxy().AsyncRequest( |
545 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kCreateTable)), req, resp, controller, std::move(callback)); |
546 | 0 | } |
547 | | |
548 | | ::yb::Status PgClientServiceProxy::CreateTablegroup( |
549 | 1 | const ::yb::tserver::PgCreateTablegroupRequestPB &req, ::yb::tserver::PgCreateTablegroupResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
550 | 1 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "CreateTablegroup"); |
551 | 1 | return proxy().SyncRequest( |
552 | 1 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kCreateTablegroup)), req, resp, controller); |
553 | 1 | } |
554 | | |
555 | | void PgClientServiceProxy::CreateTablegroupAsync( |
556 | | const ::yb::tserver::PgCreateTablegroupRequestPB &req, ::yb::tserver::PgCreateTablegroupResponsePB *resp, ::yb::rpc::RpcController *controller, |
557 | 0 | ::yb::rpc::ResponseCallback callback) const { |
558 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "CreateTablegroup"); |
559 | 0 | proxy().AsyncRequest( |
560 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kCreateTablegroup)), req, resp, controller, std::move(callback)); |
561 | 0 | } |
562 | | |
563 | | ::yb::Status PgClientServiceProxy::DropDatabase( |
564 | 21 | const ::yb::tserver::PgDropDatabaseRequestPB &req, ::yb::tserver::PgDropDatabaseResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
565 | 21 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "DropDatabase"); |
566 | 21 | return proxy().SyncRequest( |
567 | 21 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kDropDatabase)), req, resp, controller); |
568 | 21 | } |
569 | | |
570 | | void PgClientServiceProxy::DropDatabaseAsync( |
571 | | const ::yb::tserver::PgDropDatabaseRequestPB &req, ::yb::tserver::PgDropDatabaseResponsePB *resp, ::yb::rpc::RpcController *controller, |
572 | 0 | ::yb::rpc::ResponseCallback callback) const { |
573 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "DropDatabase"); |
574 | 0 | proxy().AsyncRequest( |
575 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kDropDatabase)), req, resp, controller, std::move(callback)); |
576 | 0 | } |
577 | | |
578 | | ::yb::Status PgClientServiceProxy::DropTable( |
579 | 1.17k | const ::yb::tserver::PgDropTableRequestPB &req, ::yb::tserver::PgDropTableResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
580 | 1.17k | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "DropTable"); |
581 | 1.17k | return proxy().SyncRequest( |
582 | 1.17k | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kDropTable)), req, resp, controller); |
583 | 1.17k | } |
584 | | |
585 | | void PgClientServiceProxy::DropTableAsync( |
586 | | const ::yb::tserver::PgDropTableRequestPB &req, ::yb::tserver::PgDropTableResponsePB *resp, ::yb::rpc::RpcController *controller, |
587 | 0 | ::yb::rpc::ResponseCallback callback) const { |
588 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "DropTable"); |
589 | 0 | proxy().AsyncRequest( |
590 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kDropTable)), req, resp, controller, std::move(callback)); |
591 | 0 | } |
592 | | |
593 | | ::yb::Status PgClientServiceProxy::DropTablegroup( |
594 | 1 | const ::yb::tserver::PgDropTablegroupRequestPB &req, ::yb::tserver::PgDropTablegroupResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
595 | 1 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "DropTablegroup"); |
596 | 1 | return proxy().SyncRequest( |
597 | 1 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kDropTablegroup)), req, resp, controller); |
598 | 1 | } |
599 | | |
600 | | void PgClientServiceProxy::DropTablegroupAsync( |
601 | | const ::yb::tserver::PgDropTablegroupRequestPB &req, ::yb::tserver::PgDropTablegroupResponsePB *resp, ::yb::rpc::RpcController *controller, |
602 | 0 | ::yb::rpc::ResponseCallback callback) const { |
603 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "DropTablegroup"); |
604 | 0 | proxy().AsyncRequest( |
605 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kDropTablegroup)), req, resp, controller, std::move(callback)); |
606 | 0 | } |
607 | | |
608 | | ::yb::Status PgClientServiceProxy::FinishTransaction( |
609 | 82.4k | const ::yb::tserver::PgFinishTransactionRequestPB &req, ::yb::tserver::PgFinishTransactionResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
610 | 82.4k | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "FinishTransaction"); |
611 | 82.4k | return proxy().SyncRequest( |
612 | 82.4k | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kFinishTransaction)), req, resp, controller); |
613 | 82.4k | } |
614 | | |
615 | | void PgClientServiceProxy::FinishTransactionAsync( |
616 | | const ::yb::tserver::PgFinishTransactionRequestPB &req, ::yb::tserver::PgFinishTransactionResponsePB *resp, ::yb::rpc::RpcController *controller, |
617 | 0 | ::yb::rpc::ResponseCallback callback) const { |
618 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "FinishTransaction"); |
619 | 0 | proxy().AsyncRequest( |
620 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kFinishTransaction)), req, resp, controller, std::move(callback)); |
621 | 0 | } |
622 | | |
623 | | ::yb::Status PgClientServiceProxy::GetCatalogMasterVersion( |
624 | 0 | const ::yb::tserver::PgGetCatalogMasterVersionRequestPB &req, ::yb::tserver::PgGetCatalogMasterVersionResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
625 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "GetCatalogMasterVersion"); |
626 | 0 | return proxy().SyncRequest( |
627 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kGetCatalogMasterVersion)), req, resp, controller); |
628 | 0 | } |
629 | | |
630 | | void PgClientServiceProxy::GetCatalogMasterVersionAsync( |
631 | | const ::yb::tserver::PgGetCatalogMasterVersionRequestPB &req, ::yb::tserver::PgGetCatalogMasterVersionResponsePB *resp, ::yb::rpc::RpcController *controller, |
632 | 0 | ::yb::rpc::ResponseCallback callback) const { |
633 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "GetCatalogMasterVersion"); |
634 | 0 | proxy().AsyncRequest( |
635 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kGetCatalogMasterVersion)), req, resp, controller, std::move(callback)); |
636 | 0 | } |
637 | | |
638 | | ::yb::Status PgClientServiceProxy::GetDatabaseInfo( |
639 | 1.61k | const ::yb::tserver::PgGetDatabaseInfoRequestPB &req, ::yb::tserver::PgGetDatabaseInfoResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
640 | 1.61k | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "GetDatabaseInfo"); |
641 | 1.61k | return proxy().SyncRequest( |
642 | 1.61k | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kGetDatabaseInfo)), req, resp, controller); |
643 | 1.61k | } |
644 | | |
645 | | void PgClientServiceProxy::GetDatabaseInfoAsync( |
646 | | const ::yb::tserver::PgGetDatabaseInfoRequestPB &req, ::yb::tserver::PgGetDatabaseInfoResponsePB *resp, ::yb::rpc::RpcController *controller, |
647 | 0 | ::yb::rpc::ResponseCallback callback) const { |
648 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "GetDatabaseInfo"); |
649 | 0 | proxy().AsyncRequest( |
650 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kGetDatabaseInfo)), req, resp, controller, std::move(callback)); |
651 | 0 | } |
652 | | |
653 | | ::yb::Status PgClientServiceProxy::IsInitDbDone( |
654 | 0 | const ::yb::tserver::PgIsInitDbDoneRequestPB &req, ::yb::tserver::PgIsInitDbDoneResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
655 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "IsInitDbDone"); |
656 | 0 | return proxy().SyncRequest( |
657 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kIsInitDbDone)), req, resp, controller); |
658 | 0 | } |
659 | | |
660 | | void PgClientServiceProxy::IsInitDbDoneAsync( |
661 | | const ::yb::tserver::PgIsInitDbDoneRequestPB &req, ::yb::tserver::PgIsInitDbDoneResponsePB *resp, ::yb::rpc::RpcController *controller, |
662 | 0 | ::yb::rpc::ResponseCallback callback) const { |
663 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "IsInitDbDone"); |
664 | 0 | proxy().AsyncRequest( |
665 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kIsInitDbDone)), req, resp, controller, std::move(callback)); |
666 | 0 | } |
667 | | |
668 | | ::yb::Status PgClientServiceProxy::ListLiveTabletServers( |
669 | 2 | const ::yb::tserver::PgListLiveTabletServersRequestPB &req, ::yb::tserver::PgListLiveTabletServersResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
670 | 2 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "ListLiveTabletServers"); |
671 | 2 | return proxy().SyncRequest( |
672 | 2 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kListLiveTabletServers)), req, resp, controller); |
673 | 2 | } |
674 | | |
675 | | void PgClientServiceProxy::ListLiveTabletServersAsync( |
676 | | const ::yb::tserver::PgListLiveTabletServersRequestPB &req, ::yb::tserver::PgListLiveTabletServersResponsePB *resp, ::yb::rpc::RpcController *controller, |
677 | 0 | ::yb::rpc::ResponseCallback callback) const { |
678 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "ListLiveTabletServers"); |
679 | 0 | proxy().AsyncRequest( |
680 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kListLiveTabletServers)), req, resp, controller, std::move(callback)); |
681 | 0 | } |
682 | | |
683 | | ::yb::Status PgClientServiceProxy::OpenTable( |
684 | 64.6k | const ::yb::tserver::PgOpenTableRequestPB &req, ::yb::tserver::PgOpenTableResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
685 | 64.6k | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "OpenTable"); |
686 | 64.6k | return proxy().SyncRequest( |
687 | 64.6k | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kOpenTable)), req, resp, controller); |
688 | 64.6k | } |
689 | | |
690 | | void PgClientServiceProxy::OpenTableAsync( |
691 | | const ::yb::tserver::PgOpenTableRequestPB &req, ::yb::tserver::PgOpenTableResponsePB *resp, ::yb::rpc::RpcController *controller, |
692 | 0 | ::yb::rpc::ResponseCallback callback) const { |
693 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "OpenTable"); |
694 | 0 | proxy().AsyncRequest( |
695 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kOpenTable)), req, resp, controller, std::move(callback)); |
696 | 0 | } |
697 | | |
698 | | ::yb::Status PgClientServiceProxy::Perform( |
699 | 0 | const ::yb::tserver::PgPerformRequestPB &req, ::yb::tserver::PgPerformResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
700 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "Perform"); |
701 | 0 | return proxy().SyncRequest( |
702 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kPerform)), req, resp, controller); |
703 | 0 | } |
704 | | |
705 | | void PgClientServiceProxy::PerformAsync( |
706 | | const ::yb::tserver::PgPerformRequestPB &req, ::yb::tserver::PgPerformResponsePB *resp, ::yb::rpc::RpcController *controller, |
707 | 775k | ::yb::rpc::ResponseCallback callback) const { |
708 | 775k | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "Perform"); |
709 | 775k | proxy().AsyncRequest( |
710 | 775k | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kPerform)), req, resp, controller, std::move(callback)); |
711 | 775k | } |
712 | | |
713 | | ::yb::Status PgClientServiceProxy::ReserveOids( |
714 | 380 | const ::yb::tserver::PgReserveOidsRequestPB &req, ::yb::tserver::PgReserveOidsResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
715 | 380 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "ReserveOids"); |
716 | 380 | return proxy().SyncRequest( |
717 | 380 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kReserveOids)), req, resp, controller); |
718 | 380 | } |
719 | | |
720 | | void PgClientServiceProxy::ReserveOidsAsync( |
721 | | const ::yb::tserver::PgReserveOidsRequestPB &req, ::yb::tserver::PgReserveOidsResponsePB *resp, ::yb::rpc::RpcController *controller, |
722 | 0 | ::yb::rpc::ResponseCallback callback) const { |
723 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "ReserveOids"); |
724 | 0 | proxy().AsyncRequest( |
725 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kReserveOids)), req, resp, controller, std::move(callback)); |
726 | 0 | } |
727 | | |
728 | | ::yb::Status PgClientServiceProxy::RollbackSubTransaction( |
729 | 23.5k | const ::yb::tserver::PgRollbackSubTransactionRequestPB &req, ::yb::tserver::PgRollbackSubTransactionResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
730 | 23.5k | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "RollbackSubTransaction"); |
731 | 23.5k | return proxy().SyncRequest( |
732 | 23.5k | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kRollbackSubTransaction)), req, resp, controller); |
733 | 23.5k | } |
734 | | |
735 | | void PgClientServiceProxy::RollbackSubTransactionAsync( |
736 | | const ::yb::tserver::PgRollbackSubTransactionRequestPB &req, ::yb::tserver::PgRollbackSubTransactionResponsePB *resp, ::yb::rpc::RpcController *controller, |
737 | 0 | ::yb::rpc::ResponseCallback callback) const { |
738 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "RollbackSubTransaction"); |
739 | 0 | proxy().AsyncRequest( |
740 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kRollbackSubTransaction)), req, resp, controller, std::move(callback)); |
741 | 0 | } |
742 | | |
743 | | ::yb::Status PgClientServiceProxy::SetActiveSubTransaction( |
744 | 48.8k | const ::yb::tserver::PgSetActiveSubTransactionRequestPB &req, ::yb::tserver::PgSetActiveSubTransactionResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
745 | 48.8k | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "SetActiveSubTransaction"); |
746 | 48.8k | return proxy().SyncRequest( |
747 | 48.8k | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kSetActiveSubTransaction)), req, resp, controller); |
748 | 48.8k | } |
749 | | |
750 | | void PgClientServiceProxy::SetActiveSubTransactionAsync( |
751 | | const ::yb::tserver::PgSetActiveSubTransactionRequestPB &req, ::yb::tserver::PgSetActiveSubTransactionResponsePB *resp, ::yb::rpc::RpcController *controller, |
752 | 0 | ::yb::rpc::ResponseCallback callback) const { |
753 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "SetActiveSubTransaction"); |
754 | 0 | proxy().AsyncRequest( |
755 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kSetActiveSubTransaction)), req, resp, controller, std::move(callback)); |
756 | 0 | } |
757 | | |
758 | | ::yb::Status PgClientServiceProxy::TabletServerCount( |
759 | 57 | const ::yb::tserver::PgTabletServerCountRequestPB &req, ::yb::tserver::PgTabletServerCountResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
760 | 57 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "TabletServerCount"); |
761 | 57 | return proxy().SyncRequest( |
762 | 57 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kTabletServerCount)), req, resp, controller); |
763 | 57 | } |
764 | | |
765 | | void PgClientServiceProxy::TabletServerCountAsync( |
766 | | const ::yb::tserver::PgTabletServerCountRequestPB &req, ::yb::tserver::PgTabletServerCountResponsePB *resp, ::yb::rpc::RpcController *controller, |
767 | 0 | ::yb::rpc::ResponseCallback callback) const { |
768 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "TabletServerCount"); |
769 | 0 | proxy().AsyncRequest( |
770 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kTabletServerCount)), req, resp, controller, std::move(callback)); |
771 | 0 | } |
772 | | |
773 | | ::yb::Status PgClientServiceProxy::TruncateTable( |
774 | 31 | const ::yb::tserver::PgTruncateTableRequestPB &req, ::yb::tserver::PgTruncateTableResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
775 | 31 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "TruncateTable"); |
776 | 31 | return proxy().SyncRequest( |
777 | 31 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kTruncateTable)), req, resp, controller); |
778 | 31 | } |
779 | | |
780 | | void PgClientServiceProxy::TruncateTableAsync( |
781 | | const ::yb::tserver::PgTruncateTableRequestPB &req, ::yb::tserver::PgTruncateTableResponsePB *resp, ::yb::rpc::RpcController *controller, |
782 | 0 | ::yb::rpc::ResponseCallback callback) const { |
783 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "TruncateTable"); |
784 | 0 | proxy().AsyncRequest( |
785 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kTruncateTable)), req, resp, controller, std::move(callback)); |
786 | 0 | } |
787 | | |
788 | | ::yb::Status PgClientServiceProxy::ValidatePlacement( |
789 | 0 | const ::yb::tserver::PgValidatePlacementRequestPB &req, ::yb::tserver::PgValidatePlacementResponsePB *resp, ::yb::rpc::RpcController *controller) const { |
790 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "ValidatePlacement"); |
791 | 0 | return proxy().SyncRequest( |
792 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kValidatePlacement)), req, resp, controller); |
793 | 0 | } |
794 | | |
795 | | void PgClientServiceProxy::ValidatePlacementAsync( |
796 | | const ::yb::tserver::PgValidatePlacementRequestPB &req, ::yb::tserver::PgValidatePlacementResponsePB *resp, ::yb::rpc::RpcController *controller, |
797 | 0 | ::yb::rpc::ResponseCallback callback) const { |
798 | 0 | static ::yb::rpc::RemoteMethod method("yb.tserver.PgClientService", "ValidatePlacement"); |
799 | 0 | proxy().AsyncRequest( |
800 | 0 | &method, metrics<24>(static_cast<size_t>(PgClientServiceRpcMethodIndexes::kValidatePlacement)), req, resp, controller, std::move(callback)); |
801 | 0 | } |
802 | | |
803 | | } // namespace tserver |
804 | | } // namespace yb |