Class CacheHealthIndicator

java.lang.Object
ubic.gemma.rest.monitoring.health.CacheHealthIndicator
All Implemented Interfaces:
HealthIndicator

@Component public class CacheHealthIndicator extends Object implements 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

      public String getName()
      Description copied from interface: HealthIndicator
      Stable identifier for this component in the aggregated response (e.g. "db", "cache", "diskSpace").
      Specified by:
      getName in interface HealthIndicator
    • check

      public HealthResult check()
      Description copied from interface: HealthIndicator
      Run 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:
      check in interface HealthIndicator