Class DependentServicesHealthCheck

java.lang.Object
ai.pipestream.registration.health.DependentServicesHealthCheck
All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck

@Readiness @ApplicationScoped public class DependentServicesHealthCheck extends Object implements org.eclipse.microprofile.health.HealthCheck
Health check for services that platform-registration-service directly depends on. These checks are automatically exposed via: - REST: /q/health/ready - gRPC: grpc.health.v1.Health service

Services checked: - PostgreSQL (service registry database) - Consul (service discovery backend) - Apicurio Registry (schema storage)

All checks are blocking. The database (JDBC query timeout) and Consul (future timeout) checks are bounded to ~2s; the Apicurio check relies on the registry client's own HTTP timeout rather than an explicit bound here.

  • Constructor Details

    • DependentServicesHealthCheck

      public DependentServicesHealthCheck()
      Creates the health check bean. The data source, Consul client, and Apicurio client it probes are supplied by CDI field injection.
  • Method Details

    • call

      public org.eclipse.microprofile.health.HealthCheckResponse call()
      Specified by:
      call in interface org.eclipse.microprofile.health.HealthCheck