Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17140

camel-core - Make it easier to get a route health-check by route id

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.13.0
    • camel-core
    • None
    • Unknown

    Description

      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();

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment