Class TimeBasedDirectoryCleanerHealthCheck


  • public class TimeBasedDirectoryCleanerHealthCheck
    extends com.codahale.metrics.health.HealthCheck
    A health check for TimeBasedDirectoryCleaner that checks if there have been any delete errors within a specific duration of time. Errors older than the warning threshold will not cause this to report as unhealthy; it will report unhealthy only if there are errors within the warning threshold.
    • Field Detail

      • DEFAULT_DELETE_ERROR_THRESHOLD

        public static final Duration DEFAULT_DELETE_ERROR_THRESHOLD
    • Method Detail

      • check

        protected com.codahale.metrics.health.HealthCheck.Result check()
        Specified by:
        check in class com.codahale.metrics.health.HealthCheck