Package org.forgerock.am.health
Class ReadinessCheckEndpoint
java.lang.Object
org.forgerock.am.health.ReadinessCheckEndpoint
CHF endpoint that reports AMs readiness, pertaining to the characteristics laid out in the Kubernetes documentation
for the readiness probe. This endpoint calls out to the
HealthCheckService
to ascertain whether AM is
ready.- Since:
- 7.1.0
-
Constructor Summary
ConstructorDescriptionReadinessCheckEndpoint
(org.forgerock.am.health.HealthCheckService service) Creates a new instance of the readiness endpoint. -
Method Summary
-
Constructor Details
-
ReadinessCheckEndpoint
@Inject public ReadinessCheckEndpoint(org.forgerock.am.health.HealthCheckService service) Creates a new instance of the readiness endpoint.- Parameters:
service
- the health check service
-
-
Method Details
-
isReady
Checks the AM instance is ready.- Returns:
- the readiness status of the AM instance
-