Interface HealthCheckRegistry

    • Method Detail

      • isEnabled

        boolean isEnabled()
        Whether Health Check is enabled globally
      • setEnabled

        void setEnabled​(boolean enabled)
        Whether Health Check is enabled globally
      • getCheckIDs

        default Collection<String> getCheckIDs()
        A collection of health check IDs.
      • getCheck

        default Optional<HealthCheck> getCheck​(String id)
        Returns the check identified by the given id if available.
      • get

        static HealthCheckRegistry get​(CamelContext context)
        Returns an optional HealthCheckRegistry, by default no registry is present, and it must be explicit activated. Components can register/unregister health checks in response to life-cycle events (i.e. start/stop). This registry is not used by the camel context, but it is up to the implementation to properly use it, such as: - a RouteController could use the registry to decide to restart a route with failing health checks - spring boot could integrate such checks within its health endpoint or make it available only as separate endpoint.
      • loadHealthChecks

        void loadHealthChecks()
        Loads custom health checks by scanning classpath.