|
The "get statistics" command allows the client to obtain the run-time statistics of the queue server. The "get statistics" message has the following format:
Object name: "stats"
.
Message name: "get-basic"
for basic statistics or "get-details"
for detailed data.
Message content: ignored.
After receiving this message, the queue server replies with the amount of information that depends on the requested level of details.
For basic information the parameters object in reply contains the following fields:
"num_of_queues"
- integer, number of all currently managed queues,"num_of_all_waiting_messages"
- integer, total number of all messages currently waiting in the server,"total_of_all_content_sizes"
- long long, total size of all waiting messages,"num_of_all_waiting_clients"
- integer, total number of clients that are currently waiting for messages.If the detailed data is requested, then in addition to the above fields, the queue server fills the reply parameters object with equally sized arrays:
"queue_names"
- string array with names of all currently managed queues,"num_of_waiting_messages"
- integer array with number of waiting messages for each queue,"total_content_sizes"
- long long array with sizes of waiting messages for each queue,"num_of_waiting_clients"
- integer array with number of clients waiting on each queue.