Class FileSystemFreeSpaceHealthCheck

java.lang.Object
com.codahale.metrics.health.HealthCheck
nl.knaw.dans.lib.util.healthcheck.FileSystemFreeSpaceHealthCheck

public class FileSystemFreeSpaceHealthCheck extends com.codahale.metrics.health.HealthCheck
A health check that verifies that the file system containing the given path has at least the given margin of free space.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.codahale.metrics.health.HealthCheck

    com.codahale.metrics.health.HealthCheck.Result, com.codahale.metrics.health.HealthCheck.ResultBuilder
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.codahale.metrics.health.HealthCheck.Result
     
     

    Methods inherited from class com.codahale.metrics.health.HealthCheck

    clock, execute

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FileSystemFreeSpaceHealthCheck

      public FileSystemFreeSpaceHealthCheck()
  • Method Details

    • check

      protected com.codahale.metrics.health.HealthCheck.Result check() throws Exception
      Specified by:
      check in class com.codahale.metrics.health.HealthCheck
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object