Mir
rpc_report.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
17  */
18 
19 #ifndef MIR_CLIENT_LTTNG_RPC_REPORT_H_
20 #define MIR_CLIENT_LTTNG_RPC_REPORT_H_
21 
22 #include "../rpc/rpc_report.h"
24 
25 namespace mir
26 {
27 namespace client
28 {
29 namespace lttng
30 {
31 
32 class RpcReport : public rpc::RpcReport
33 {
34 public:
35  void invocation_requested(mir::protobuf::wire::Invocation const& invocation) override;
36  void invocation_succeeded(mir::protobuf::wire::Invocation const& invocation) override;
37  void invocation_failed(mir::protobuf::wire::Invocation const& invocation,
38  std::exception const& ex) override;
39 
40  void result_receipt_succeeded(mir::protobuf::wire::Result const& result) override;
41  void result_receipt_failed(std::exception const& ex) override;
42 
43  void event_parsing_succeeded(MirEvent const& event) override;
44  void event_parsing_failed(mir::protobuf::Event const& event) override;
45 
46  void orphaned_result(mir::protobuf::wire::Result const& result) override;
47  void complete_response(mir::protobuf::wire::Result const& result) override;
48 
49  void result_processing_failed(mir::protobuf::wire::Result const& result,
50  std::exception const& ex) override;
51 
52  void file_descriptors_received(google::protobuf::MessageLite const& response,
53  std::vector<Fd> const& fds) override;
54 
55 private:
56  ClientTracepointProvider tp_provider;
57 };
58 
59 }
60 }
61 }
62 
63 #endif /* MIR_CLIENT_LTTNG_RPC_REPORT_H_ */
All things Mir.
Definition: atomic_callback.h:25
void file_descriptors_received(google::protobuf::MessageLite const &response, std::vector< Fd > const &fds) override
Definition: rpc_report.cpp:90
void orphaned_result(mir::protobuf::wire::Result const &result) override
Definition: rpc_report.cpp:73
Definition: rpc_report.h:32
void invocation_failed(mir::protobuf::wire::Invocation const &invocation, std::exception const &ex) override
Definition: rpc_report.cpp:44
void result_processing_failed(mir::protobuf::wire::Result const &result, std::exception const &ex) override
Definition: rpc_report.cpp:84
void invocation_requested(mir::protobuf::wire::Invocation const &invocation) override
Definition: rpc_report.cpp:30
Definition: client_tracepoint_provider.h:31
void event_parsing_failed(mir::protobuf::Event const &event) override
Definition: rpc_report.cpp:68
void result_receipt_succeeded(mir::protobuf::wire::Result const &result) override
Definition: rpc_report.cpp:50
Definition: rpc_report.h:53
void result_receipt_failed(std::exception const &ex) override
Definition: rpc_report.cpp:56
void invocation_succeeded(mir::protobuf::wire::Invocation const &invocation) override
Definition: rpc_report.cpp:37
Definition: event_private.h:178
void event_parsing_succeeded(MirEvent const &event) override
Definition: rpc_report.cpp:61
void complete_response(mir::protobuf::wire::Result const &result) override
Definition: rpc_report.cpp:78

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015