You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by zackhasit <za...@gmail.com> on 2012/06/11 21:09:46 UTC
How to reset stats programmatically
Hi,
It looks like I can use stats plugin to get all stats I might need. But
after reading the stats I want to reset them such that next time when I get
new stats they are delta from last time read.
Is this possible ? How ?
Thanks
--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-reset-stats-programmatically-tp4653182.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to reset stats programmatically
Posted by Gary Tully <ga...@gmail.com>.
there is a org.apache.activemq.broker.jmx.BrokerViewMBean#resetStatistics
operation on the broker view, so you would need to use jmx
programatically to reset.
It would be a nice enhancement to allow a jms message header or
destination indicate a request for reset so that the jms api via the
statistics plugin could do it.
can you raise a jira issue to track this?
On 11 June 2012 20:09, zackhasit <za...@gmail.com> wrote:
> Hi,
>
> It looks like I can use stats plugin to get all stats I might need. But
> after reading the stats I want to reset them such that next time when I get
> new stats they are delta from last time read.
> Is this possible ? How ?
>
> Thanks
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/How-to-reset-stats-programmatically-tp4653182.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
http://fusesource.com
http://blog.garytully.com