Package org.apache.hadoop.hbase
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
Class to implement for each type of resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getMax()
Maximum we set for the resource.int
getMin()
Minimum we set for the resource.getName()
Name of the resource analyzed.abstract int
getVal
(ResourceChecker.Phase phase) The value for the resource.
-
Constructor Details
-
ResourceAnalyzer
-
-
Method Details
-
getMax
Maximum we set for the resource. Will get a warning in logs if we go over this limit. -
getMin
Minimum we set for the resource. Will get a warning in logs if we go under this limit. -
getName
Name of the resource analyzed. By default extracted from the class name, but can be overridden by the subclasses. -
getVal
The value for the resource.- Parameters:
phase
- theResourceChecker.Phase
to get the value for
-
getStringsToLog
-