/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/tserver/backup.service.h
Line | Count | Source (jump to first uncovered line) |
1 | | // THIS FILE IS AUTOGENERATED FROM yb/tserver/backup.proto |
2 | | |
3 | | #pragma once |
4 | | |
5 | | #include "yb/tserver/backup.pb.h" |
6 | | |
7 | | #include <string> |
8 | | |
9 | | #include "yb/rpc/rpc_fwd.h" |
10 | | #include "yb/rpc/rpc_header.pb.h" |
11 | | #include "yb/rpc/service_if.h" |
12 | | |
13 | | #include "yb/util/monotime.h" |
14 | | |
15 | | namespace yb { |
16 | | class MetricEntity; |
17 | | } // namespace yb |
18 | | |
19 | | namespace yb { |
20 | | namespace tserver { |
21 | | |
22 | | enum class TabletServerBackupServiceRpcMethodIndexes { |
23 | | kTabletSnapshotOp, |
24 | | }; // enum |
25 | | |
26 | | class TabletServerBackupServiceIf : public ::yb::rpc::ServiceIf { |
27 | | public: |
28 | | explicit TabletServerBackupServiceIf(const scoped_refptr<MetricEntity>& entity); |
29 | | virtual ~TabletServerBackupServiceIf(); |
30 | | void Handle(::yb::rpc::InboundCallPtr call) override; |
31 | | void FillEndpoints(const ::yb::rpc::RpcServicePtr& service, ::yb::rpc::RpcEndpointMap* map) override; |
32 | | std::string service_name() const override; |
33 | | static std::string static_service_name(); |
34 | | |
35 | | virtual void TabletSnapshotOp( |
36 | | const ::yb::tserver::TabletSnapshotOpRequestPB* req, |
37 | | ::yb::tserver::TabletSnapshotOpResponsePB* resp, |
38 | | ::yb::rpc::RpcContext context) = 0; |
39 | | |
40 | 0 | ::yb::rpc::RpcMethodMetrics GetMetric(TabletServerBackupServiceRpcMethodIndexes index) { |
41 | 0 | return methods_[static_cast<size_t>(index)].metrics; |
42 | 0 | } |
43 | | |
44 | | private: |
45 | | static const int kMethodCount = 1; |
46 | | |
47 | | // Pre-initialize metrics because calling METRIC_foo.Instantiate() is expensive. |
48 | | void InitMethods(const scoped_refptr<MetricEntity>& ent); |
49 | | |
50 | | ::yb::rpc::RpcMethodDesc methods_[kMethodCount]; |
51 | | }; |
52 | | |
53 | | } // namespace tserver |
54 | | } // namespace yb |
55 | | |