public class StackTraceDatabase extends Object
Used for preventing duplication of stack traces in log files and replacing them with small hashes.
Constructor and Description |
---|
StackTraceDatabase()
Constructor.
|
StackTraceDatabase(Class<?> stopClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
StackTraceInfo |
getStackTraceInfo(Throwable e,
int timeout)
Retrieves the stack trace information for the specified exception.
|
void |
reset()
Clears out the stack trace cache.
|
public StackTraceDatabase()
public StackTraceDatabase(Class<?> stopClass)
stopClass
- When this class is encountered in a stack trace, stop calculating the hash.public StackTraceInfo getStackTraceInfo(Throwable e, int timeout)
e
- The exception.timeout
- The timeout in milliseconds to cache the hash for this stack trace.public void reset()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.