public class ResourceChecker extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ResourceChecker.Phase |
(package private) static class |
ResourceChecker.ResourceAnalyzer
Class to implement for each type of resource.
|
Modifier and Type | Field and Description |
---|---|
private int[] |
endingValues |
private int[] |
initialValues |
private static org.slf4j.Logger |
LOG |
private List<ResourceChecker.ResourceAnalyzer> |
ras |
private String |
tagLine |
Constructor and Description |
---|
ResourceChecker(String tagLine)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addResourceAnalyzer(ResourceChecker.ResourceAnalyzer ra)
Adds a resource analyzer to the resources checked.
|
private void |
check(int[] vals) |
private void |
checkEndings() |
void |
checkInit() |
void |
end()
To be called as the end of a test method: - measure the resources - check vs.
|
private void |
fill(ResourceChecker.Phase phase,
int[] vals) |
private void |
fillEndings() |
private void |
fillInit() |
private void |
logEndings() |
private void |
logInit() |
void |
start()
To be called as the beginning of a test method: - measure the resources - check vs.
|
private static final org.slf4j.Logger LOG
private List<ResourceChecker.ResourceAnalyzer> ras
private int[] initialValues
private int[] endingValues
public ResourceChecker(String tagLine)
tagLine
- The tagLine is added to the logs. Must not be null.private void fillInit()
private void fillEndings()
private void fill(ResourceChecker.Phase phase, int[] vals)
public void checkInit()
private void checkEndings()
private void check(int[] vals)
private void logInit()
private void logEndings()
public void start()
public void end()
public void addResourceAnalyzer(ResourceChecker.ResourceAnalyzer ra)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.