public class ExceptionStore extends Object
Used for preventing duplication of stack traces in log files and replacing them with small hashes.
Constructor and Description |
---|
ExceptionStore()
Constructor.
|
ExceptionStore(long cacheTimeout,
Class<?> stopClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ExceptionStore |
add(Throwable e)
Adds the specified throwable to this database.
|
List<ExceptionStats> |
getClonedStats()
Returns the list of all stack traces in this database.
|
ExceptionStats |
getStackTraceInfo(Throwable e)
Retrieves the stack trace information for the specified exception.
|
void |
reset()
Clears out the stack trace cache.
|
public ExceptionStore()
public ExceptionStore(long cacheTimeout, Class<?> stopClass)
cacheTimeout
- The amount of time in milliseconds to cache stack trace info in this database before discarding.
stopClass
- When this class is encountered in a stack trace, stop calculating the hash.
public ExceptionStore add(Throwable e)
e
- The exception to add.public ExceptionStats getStackTraceInfo(Throwable e)
e
- The exception.public void reset()
public List<ExceptionStats> getClonedStats()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.