55
66#include < irods/irods_error.hpp>
77
8- #include < chrono>
98#include < cstdint>
10- #include < condition_variable>
119#include < fstream>
1210#include < mutex>
1311#include < optional>
1412#include < semaphore>
15- #include < shared_mutex>
1613#include < string>
1714#include < thread>
1815#include < vector>
@@ -65,30 +62,29 @@ namespace irods::plugin::rule_engine::audit_amqp
6562 std::ofstream& test_log_ofstream);
6663
6764 void on_container_start (proton::container& container) override ;
68- void on_container_stop (proton::container& container) override ;
69- void on_transport_close (proton::transport& transport) override ;
7065 void on_transport_error (proton::transport& transport) override ;
71- void on_connection_open (proton::connection& connection) override ;
72- void on_connection_close (proton::connection& connection) override ;
7366 void on_connection_error (proton::connection& connection) override ;
74- void on_session_close (proton::session& session) override ;
7567 void on_session_error (proton::session& session) override ;
76- void on_sender_open (proton::sender& sender) override ;
77- void on_sender_close (proton::sender& sender) override ;
7868 void on_sender_error (proton::sender& sender) override ;
79- void on_tracker_accept (proton::tracker& tracker) override ;
8069 void on_tracker_reject (proton::tracker& tracker) override ;
81- void on_tracker_release (proton::tracker& tracker) override ;
82- void on_tracker_settle (proton::tracker& tracker) override ;
8370 void on_error (const proton::error_condition& err_cond) override ;
8471
8572 #ifdef IRODS_AUDIT_EXTRA_TRACE
73+ void on_container_stop (proton::container& container) override ;
8674 void on_sendable (proton::sender& sender) override ;
8775 void on_transport_open (proton::transport& transport) override ;
76+ void on_transport_close (proton::transport& transport) override ;
77+ void on_connection_open (proton::connection& connection) override ;
78+ void on_connection_close (proton::connection& connection) override ;
8879 void on_session_open (proton::session& session) override ;
80+ void on_session_close (proton::session& session) override ;
8981 void on_sender_detach (proton::sender& sender) override ;
82+ void on_sender_open (proton::sender& sender) override ;
83+ void on_sender_close (proton::sender& sender) override ;
84+ void on_tracker_accept (proton::tracker& tracker) override ;
85+ void on_tracker_release (proton::tracker& tracker) override ;
86+ void on_tracker_settle (proton::tracker& tracker) override ;
9087 void on_sender_drain_start (proton::sender& sender) override ;
91- void on_receiver_drain_finish (proton::receiver& receiver) override ;
9288 void on_connection_wake (proton::connection& connection) override ;
9389 #endif
9490
@@ -110,16 +106,9 @@ namespace irods::plugin::rule_engine::audit_amqp
110106 std::optional<bool > _durable_messages;
111107
112108 std::optional<std::thread> _proton_thread;
113-
114109 std::mutex _amqp_send_mutex;
115-
116- std::shared_mutex _amqp_connection_cv_mutex;
117- std::condition_variable_any _amqp_connection_cv;
118110 std::binary_semaphore _connection_semaphore;
119111
120- std::shared_mutex _amqp_send_cv_mutex;
121- std::condition_variable_any _amqp_send_cv;
122-
123112 std::optional<proton::container> _container;
124113 std::optional<proton::connection> _connection;
125114 std::optional<proton::sender> _sender;
0 commit comments