Class ResourceChecker.ResourceAnalyzer

java.lang.Object
org.apache.hadoop.hbase.ResourceChecker.ResourceAnalyzer
Direct Known Subclasses:
ResourceCheckerJUnitListener.AvailableMemoryMBResourceAnalyzer, ResourceCheckerJUnitListener.MaxFileDescriptorResourceAnalyzer, ResourceCheckerJUnitListener.OpenFileDescriptorResourceAnalyzer, ResourceCheckerJUnitListener.ProcessCountResourceAnalyzer, ResourceCheckerJUnitListener.SystemLoadAverageResourceAnalyzer, ResourceCheckerJUnitListener.ThreadResourceAnalyzer
Enclosing class:
ResourceChecker

abstract static class ResourceChecker.ResourceAnalyzer extends Object
Class to implement for each type of resource.
  • Constructor Details

  • Method Details

    • getMax

      public int getMax()
      Maximum we set for the resource. Will get a warning in logs if we go over this limit.
    • getMin

      public int getMin()
      Minimum we set for the resource. Will get a warning in logs if we go under this limit.
    • getName

      public String getName()
      Name of the resource analyzed. By default extracted from the class name, but can be overridden by the subclasses.
    • getVal

      public abstract int getVal(ResourceChecker.Phase phase)
      The value for the resource.
      Parameters:
      phase - the ResourceChecker.Phase to get the value for
    • getStringsToLog