am using org.hornetq.core.management.impl.QueueControlImpl for certain Attributes .
what is the difference between MessageCount , MessagesAdded , DeliveringCount and ScheduledCount ?
message count is al messages in the queue, including scheduled and delivered but not acked.
messages added is the number of message that have rrived on the queue since last restart
delivering count is messages delivered to the consumer but not yet acked
scheduled messages are, well scheduled messages.
Also i see MessageCount in org.hornetq.jms.management.impl.JMSTopicControlImpl too.
But i belive this is similar to QueueControlImpl messageCount, is it?
Also there are certain Message counters attached to <message-counter-enabled>true</message-counter-enabled> and JMSQueueControl .
Do i need to enable the settings even to make above message counters work?
no, message counters are separate functionality used for gathering more complex statistics.
When iam running Paging , my DurableMessageCount doesnt increase. Though my producer is able to send the messages to the Hornetq . We are using Paging . I can see that Paging directly is constantly increasing , so i belive Messages are getting paged.
Is there a counter to see how many messages are getting paged too?
rahul singh wrote:
Iam using JMX monitoring for monitoring the TOPICs and QUEUEs.
Iam using org.hornetq.core.management.impl.QueueControlImpl for certain Attributes .
Rahul, would you mind sharing how you were able to create a QueuControlImpl class. I'm having trouble figuring it out.
This was improved on HornetQ 2.2.2.
You would get the message cached at the Address Level before, and we have it with cursors now on HornetQ