mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 20:59:47 +01:00
Problem: cannot monitor state of queues at runtime
Solution: add API and ZMQ_EVENT_PIPES_STATS event which generates 2 values, one for the egress and one for the ingress pipes respectively. Refactor the events code to be able to send multiple values.
This commit is contained in:
committed by
Luca Boccassi
parent
cb73745250
commit
feadf6d40f
@@ -145,6 +145,8 @@ class pipe_t : public object_t,
|
||||
void set_endpoint_pair (endpoint_uri_pair_t endpoint_pair_);
|
||||
const endpoint_uri_pair_t &get_endpoint_pair () const;
|
||||
|
||||
void send_stats_to_peer (own_t *socket_base_);
|
||||
|
||||
private:
|
||||
// Type of the underlying lock-free pipe.
|
||||
typedef ypipe_base_t<msg_t> upipe_t;
|
||||
@@ -153,6 +155,9 @@ class pipe_t : public object_t,
|
||||
void process_activate_read ();
|
||||
void process_activate_write (uint64_t msgs_read_);
|
||||
void process_hiccup (void *pipe_);
|
||||
void process_pipe_peer_stats (uint64_t queue_count_,
|
||||
own_t *socket_base_,
|
||||
endpoint_uri_pair_t *endpoint_pair_);
|
||||
void process_pipe_term ();
|
||||
void process_pipe_term_ack ();
|
||||
void process_pipe_hwm (int inhwm_, int outhwm_);
|
||||
|
||||
Reference in New Issue
Block a user