T
- the type of resource the detector trackspublic class AlluxioResourceLeakDetector<T>
extends io.netty.util.ResourceLeakDetector<T>
ResourceLeakDetector
with custom error messages for use in the
Alluxio codebase.Constructor and Description |
---|
AlluxioResourceLeakDetector(Class<?> resourceType,
int samplingInterval,
boolean exitOnLeak)
Creates a new instance of the leak detector with the specific resource type and sampling
interval.
|
Modifier and Type | Method and Description |
---|---|
protected void |
reportTracedLeak(String resourceType,
String records)
A traced leak report which includes records of the recent accesses of the particular object and
the stacktrace of where the particular object was created.
|
protected void |
reportUntracedLeak(String resourceType)
An untraced leak report where there is no information about recent object accesses nor
where the stacktrace of where the object was created.
|
public AlluxioResourceLeakDetector(Class<?> resourceType, int samplingInterval, boolean exitOnLeak)
resourceType
- the resource classsamplingInterval
- on average, how often a resource should be trackedexitOnLeak
- whether to exit the JVM when a leak is detectedprotected void reportTracedLeak(String resourceType, String records)
reportTracedLeak
in class io.netty.util.ResourceLeakDetector<T>
resourceType
- the class of the resource that was leakedrecords
- the stacktrace of where the leaked resource was createdprotected void reportUntracedLeak(String resourceType)
reportUntracedLeak
in class io.netty.util.ResourceLeakDetector<T>
resourceType
- the class name of the resource which was leakedCopyright © 2023. All Rights Reserved.