[
https://issues.apache.org/jira/browse/CAMEL-17140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-17140.
---------------------------------
Resolution: Fixed
> camel-core - Make it easier to get a route health-check by route id
> -------------------------------------------------------------------
>
> Key: CAMEL-17140
> URL: https://issues.apache.org/jira/browse/CAMEL-17140
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.13.0
>
>
> When testing or the need to lookup a route health check then we should make
> this easier. The logic today is a bit cumbersome, with a stream of checks,
> etc.
> HealthCheckRegistry hcr =
> context.getExtension(HealthCheckRegistry.class);
> HealthCheckRepository repo = hcr.getRepository("routes").get();
> HealthCheck hc = repo.stream().findFirst().get();
--
This message was sent by Atlassian Jira
(v8.3.4#803005)