Class CacheHealthIndicator
java.lang.Object
ubic.gemma.rest.monitoring.health.CacheHealthIndicator
- All Implemented Interfaces:
HealthIndicator
Cache health probe. Confirms the Spring
CacheManager bean is reachable and reports
how many caches it currently knows about. Does not probe individual caches (that would skew
hit/miss ratios visible in metrics).- Author:
- Phase 3 actuator wiring
-
Constructor Details
-
CacheHealthIndicator
@Autowired public CacheHealthIndicator(org.springframework.cache.CacheManager cacheManager)
-
-
Method Details
-
getName
Description copied from interface:HealthIndicatorStable identifier for this component in the aggregated response (e.g."db","cache","diskSpace").- Specified by:
getNamein interfaceHealthIndicator
-
check
Description copied from interface:HealthIndicatorRun the probe and report the result. Implementations must be quick (target less than 2 seconds) and must not throw; any failure should be reported as a DOWN result with the error message in the detail map.- Specified by:
checkin interfaceHealthIndicator
-