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.
      • getExcludePattern

        String getExcludePattern()
        Pattern to exclude health checks from being invoked by Camel when checking healths. Multiple patterns can be separated by comma.
      • setExcludePattern

        void setExcludePattern​(String excludePattern)
        Pattern to exclude health checks from being invoked by Camel when checking healths. Multiple patterns can be separated by comma.
      • isExcluded

        boolean isExcluded​(HealthCheck healthCheck)
        Whether the given health check has been excluded
      • setExposureLevel

        void setExposureLevel​(String exposureLevel)
        Sets the level of details to exposure as result of invoking health checks. There are the following levels: full, default, oneline The full level will include all details and status from all the invoked health checks. The default level will report UP if everything is okay, and only include detailed information for health checks that was DOWN. The oneline level will only report either UP or DOWN.
      • getExposureLevel

        String getExposureLevel()
        The exposure level