Class RedisHealthCheck
java.lang.Object
org.gcube.informationsystem.resourceregistry.health.RedisHealthCheck
- All Implemented Interfaces:
org.gcube.common.health.api.HealthCheck
Readiness of Redis: the service is degraded when Redis is not reachable, since the caches and
the cluster events fall back to the database and every operation still runs.
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Details
-
NAME
The name of the check in the health report.- See Also:
-
UNREACHABLE
The reason given when Redis is not reachable.- See Also:
-
-
Constructor Details
-
RedisHealthCheck
public RedisHealthCheck()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.gcube.common.health.api.HealthCheck
-
check
public org.gcube.common.health.api.response.HealthCheckResponse check()Reads the state of the Redis connection, which a background thread checks and establishes again: it never waits for Redis.- Specified by:
checkin interfaceorg.gcube.common.health.api.HealthCheck- Returns:
upwhen the connection is open,degradedwith the reason otherwise
-