Package org.forgerock.openig.http
Class SystemHealth
java.lang.Object
org.forgerock.openig.http.SystemHealth
The overall health of the system as named
HealthServices.-
Constructor Summary
ConstructorsConstructorDescriptionSystemHealth(HealthProbe startedHealthService, HealthProbe readinessHealthService, HealthProbe livenessHealthService) Creates a new instance ofSystemHealth. -
Method Summary
Modifier and TypeMethodDescriptionReturns a Handler that can be used as a Kubernetes liveness/readiness/startup probe.
-
Constructor Details
-
SystemHealth
public SystemHealth(HealthProbe startedHealthService, HealthProbe readinessHealthService, HealthProbe livenessHealthService) Creates a new instance ofSystemHealth.- Parameters:
startedHealthService- a probe that returns true when the application has startedreadinessHealthService- a probe that returns true when the application is ready to serve requestslivenessHealthService- a probe that returns true when the application is alive
-
-
Method Details
-
kubernetesProbes
Returns a Handler that can be used as a Kubernetes liveness/readiness/startup probe.- Returns:
- a Handler that can be used as a Kubernetes liveness/readiness/startup probe
- See Also:
-