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_LOGGING_RPC_REPORT_H_
20 #define MIR_CLIENT_LOGGING_RPC_REPORT_H_
21 
22 #include "../rpc/rpc_report.h"
23 
24 #include <memory>
25 
26 namespace mir
27 {
28 
29 namespace logging
30 {
31 class Logger;
32 }
33 
34 namespace client
35 {
36 namespace logging
37 {
38 
39 class RpcReport : public rpc::RpcReport
40 {
41 public:
42  RpcReport(std::shared_ptr<mir::logging::Logger> const& logger);
43 
44  void invocation_requested(mir::protobuf::wire::Invocation const& invocation) override;
45  void invocation_succeeded(mir::protobuf::wire::Invocation const& invocation) override;
46  void invocation_failed(mir::protobuf::wire::Invocation const& invocation,
47  std::exception const& ex) override;
48 
49  void header_receipt_failed(std::exception const& ex) override;
50  void result_receipt_succeeded(mir::protobuf::wire::Result const& result) override;
51  void result_receipt_failed(std::exception const& ex) override;
52 
53  void event_parsing_succeeded(MirEvent const& event) override;
54  void event_parsing_failed(mir::protobuf::Event const& event) override;
55 
56  void orphaned_result(mir::protobuf::wire::Result const& result) override;
57  void complete_response(mir::protobuf::wire::Result const& result) override;
58 
59  void result_processing_failed(mir::protobuf::wire::Result const& result,
60  std::exception const& ex) override;
61 
62  void file_descriptors_received(google::protobuf::Message const& response,
63  std::vector<Fd> const& fds) override;
64 
65  void connection_failure(std::exception const& ex) override;
66 
67 private:
68  std::shared_ptr<mir::logging::Logger> const logger;
69 };
70 
71 }
72 }
73 }
74 
75 #endif /* MIR_CLIENT_LOGGING_RPC_REPORT_H_ */
All things Mir.
Definition: buffer_stream.h:37
void invocation_succeeded(mir::protobuf::wire::Invocation const &invocation) override
Definition: rpc_report.cpp:51
void orphaned_result(mir::protobuf::wire::Result const &result) override
Definition: rpc_report.cpp:120
void complete_response(mir::protobuf::wire::Result const &result) override
Definition: rpc_report.cpp:129
void invocation_requested(mir::protobuf::wire::Invocation const &invocation) override
Definition: rpc_report.cpp:41
void result_receipt_succeeded(mir::protobuf::wire::Result const &result) override
Definition: rpc_report.cpp:82
void file_descriptors_received(google::protobuf::Message const &response, std::vector< Fd > const &fds) override
Definition: rpc_report.cpp:148
void connection_failure(std::exception const &ex) override
Definition: rpc_report.cpp:160
Definition: rpc_report.h:44
void invocation_failed(mir::protobuf::wire::Invocation const &invocation, std::exception const &ex) override
Definition: rpc_report.cpp:61
void header_receipt_failed(std::exception const &ex) override
Definition: rpc_report.cpp:73
void event_parsing_succeeded(MirEvent const &event) override
Definition: rpc_report.cpp:100
Definition: rpc_report.h:39
void result_receipt_failed(std::exception const &ex) override
Definition: rpc_report.cpp:91
void event_parsing_failed(mir::protobuf::Event const &event) override
Definition: rpc_report.cpp:110
Definition: event_deprecated.h:237
void result_processing_failed(mir::protobuf::wire::Result const &result, std::exception const &ex) override
Definition: rpc_report.cpp:138

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015