Mir
connector_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 it
5  * under the terms of the GNU General Public License version 3,
6  * as 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 General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Alan Griffiths <alan@octopull.co.uk>
17  */
18 
19 
20 #ifndef MIR_REPORT_LOGGING_CONNECTOR_REPORT_H_
21 #define MIR_REPORT_LOGGING_CONNECTOR_REPORT_H_
22 
24 
25 #include <memory>
26 
27 namespace mir
28 {
29 namespace logging
30 {
31 class Logger;
32 }
33 namespace report
34 {
35 namespace logging
36 {
37 
39 {
40 public:
41  ConnectorReport(std::shared_ptr<mir::logging::Logger> const& log);
42 
43  void thread_start() override;
44  void thread_end() override;
45  void starting_threads(int count) override;
46  void stopping_threads(int count) override;
47 
48  void creating_session_for(int socket_handle) override;
49  void creating_socket_pair(int server_handle, int client_handle) override;
50 
51  void listening_on(std::string const& endpoint) override;
52 
53  void error(std::exception const& error) override;
54 
55 private:
56  std::shared_ptr<mir::logging::Logger> const logger;
57 };
58 }
59 }
60 }
61 
62 #endif /* MIR_REPORT_LOGGING_CONNECTOR_REPORT_H_ */
void creating_socket_pair(int server_handle, int client_handle) override
All things Mir.
Definition: atomic_callback.h:25
void log(logging::Severity sev, char const *component, char const *fmt,...)
Definition: log.cpp:39
void error(std::exception const &error) override
void creating_session_for(int socket_handle) override
Definition: connector_report.h:30
void listening_on(std::string const &endpoint) override
void starting_threads(int count) override
void stopping_threads(int count) override
Definition: connector_report.h:38

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