Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups 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;
37  void invocation_failed(mir::protobuf::wire::Invocation const& invocation,
38  boost::system::error_code const& error) override;
39 
40  void header_receipt_failed(boost::system::error_code const& error) 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 
50  void result_processing_failed(mir::protobuf::wire::Result const& result,
51  std::exception const& ex) override;
52 
53  void file_descriptors_received(google::protobuf::Message const& response,
54  std::vector<int32_t> 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_ */

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Oct 15 00:23:28 UTC 2013