Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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;
38  std::exception const& ex) override;
39 
40  void header_receipt_failed(std::exception const& ex) override;
41  void result_receipt_succeeded(mir::protobuf::wire::Result const& result) override;
42  void result_receipt_failed(std::exception const& ex) override;
43 
44  void event_parsing_succeeded(MirEvent const& event) override;
45  void event_parsing_failed(mir::protobuf::Event const& event) override;
46 
47  void orphaned_result(mir::protobuf::wire::Result const& result) override;
48  void complete_response(mir::protobuf::wire::Result const& result) override;
49 
51  std::exception const& ex) override;
52 
53  void file_descriptors_received(google::protobuf::Message const& response,
54  std::vector<Fd> const& fds) override;
55 
56  void connection_failure(std::exception const& ex) override;
57 
58 private:
59  ClientTracepointProvider tp_provider;
60 };
61 
62 }
63 }
64 }
65 
66 #endif /* MIR_CLIENT_LTTNG_RPC_REPORT_H_ */
All things Mir.
Definition: aging_buffer.h:24
Definition: mir_protobuf_wire.pb.h:43
void orphaned_result(mir::protobuf::wire::Result const &result) override
Definition: rpc_report.cpp:78
Definition: rpc_report.h:32
void file_descriptors_received(google::protobuf::Message const &response, std::vector< Fd > const &fds) override
Definition: rpc_report.cpp:95
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:89
void connection_failure(std::exception const &ex) override
Definition: rpc_report.cpp:108
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:73
void result_receipt_succeeded(mir::protobuf::wire::Result const &result) override
Definition: rpc_report.cpp:55
void header_receipt_failed(std::exception const &ex) override
Definition: rpc_report.cpp:50
Definition: rpc_report.h:44
void result_receipt_failed(std::exception const &ex) override
Definition: rpc_report.cpp:61
Definition: mir_protobuf_wire.pb.h:165
void invocation_succeeded(mir::protobuf::wire::Invocation const &invocation) override
Definition: rpc_report.cpp:37
Definition: event.h:227
void event_parsing_succeeded(MirEvent const &event) override
Definition: rpc_report.cpp:66
Definition: mir_protobuf.pb.h:2040
void complete_response(mir::protobuf::wire::Result const &result) override
Definition: rpc_report.cpp:83

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014