activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Activemq health
Date Sat, 28 Jan 2017 16:37:41 GMT
On 01/23/2017 05:08 PM, Adam Whitney wrote:
> @rajdavies,
>
> After reading https://issues.apache.org/jira/browse/AMQ-6252 and the Java
> docs for HealthView and HealthViewMBean, as well as the latest source code
> for HealthView.java (since 5.13.3) ... it looks like one would first need to
> call HealthView.healthList() ... otherwise, the HealthViewMBean will always
> report "Good" as the CurrentStatus.
>
> Is there a way to trigger a call to HealthView.healthList() via Jolokia (or
> any of the other web APIs for ActiveMQ)? Or would I need to write something
> like a Broker Filter Plugin to call the HealthView.healthList() in order to
> pre-populate the HealthView.CurrentStatus so it has some useful data when I
> query it via Jolokia?
>
> Note, I'm really only interested in the health status upon startup ... as a
> way to make an automated test for zero-impact deployments. I won't be
> checking the health other than immediately after a new deployment.
>
> Thanks,
> adam
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Activemq-health-tp4675512p4721282.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

I beleive if you call healthStatus you will get the current state as 
that both the call to healthList and then gets the current state.

-- 
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message