public interface LogDAO
Modifier and Type | Method and Description |
---|---|
List<ErrorLog> |
expandLogs(String errorCategory,
String collapsedElement,
String application,
Filter filter)
Get concrete error logs fitting the passed filter settings
|
Log |
find(Long logId,
LogMetadata logMetadata)
Get log with a given ID
|
List<ErrorMetadata> |
fullText(String fullTextSearchString,
Filter filter)
Calls H2 full text search function and returns appropriate results.
|
List<? extends Log> |
getAll()
Get all logs, used by tests
|
LogMetadata |
getLogMetadata(Long logId)
Retrieve log metadata for the root log
|
List<Log> |
loadEarlier(Log log,
Long logId,
long offset,
long amount,
LogMetadata logMetadata)
Load logs that occurred BEFORE the wanted log that have the same metaata and occurred in the same thread
|
List<Log> |
loadLater(Log log,
Long logId,
long offset,
long amount,
LogMetadata logMetadata)
Load logs that occurred AFTER the wanted log
|
Integer |
pruneExpiredNonExecutionLogs(double pruneAfter)
Deletes expired logs that do not belong to any execution.
|
Integer |
pruneLogsFromApplication(String application)
Prune logs that were emitted from a given application
|
List<ErrorMetadata> |
queryLogs(Filter filter)
Query logs based on the passed filter
|
Long |
save(DebugLog debugLog,
Long connDbId)
Persist debug log
|
Long |
save(ErrorLog errorLog,
Long errorId,
Long connDbId)
Persist error log.
|
Long save(ErrorLog errorLog, Long errorId, Long connDbId)
errorLog
- error log that should be persistederrorId
- error metadata idconnDbId
- connection db idLong save(DebugLog debugLog, Long connDbId)
debugLog
- debug log that should be persistedconnDbId
- connection db idList<ErrorMetadata> fullText(String fullTextSearchString, Filter filter)
fullTextSearchString
- String inputted by a user which should be used for full text searching.filter
- request filterLog find(Long logId, LogMetadata logMetadata)
logId
- id of the wanted loglogMetadata
- metadata of the log used to dynamically choose the correct table to joinList<Log> loadEarlier(Log log, Long logId, long offset, long amount, LogMetadata logMetadata)
log
- root loglogId
- id of the root logoffset
- amount of logs already loadedamount
- amount to loadlogMetadata
- root log metadataList<Log> loadLater(Log log, Long logId, long offset, long amount, LogMetadata logMetadata)
log
- root loglogId
- id of the root logoffset
- amount of logs already loadedamount
- amount to loadlogMetadata
- root log metadataList<ErrorMetadata> queryLogs(Filter filter)
filter
- filter settings passed with the requestList<ErrorLog> expandLogs(String errorCategory, String collapsedElement, String application, Filter filter)
errorCategory
- category to which the error type belongscollapsedElement
- error type of the logsapplication
- application which emitted the errorfilter
- filter settingsLogMetadata getLogMetadata(Long logId)
logId
- id of the root logList<? extends Log> getAll()
Integer pruneLogsFromApplication(String application)
application
- application from which should the logs be deletedInteger pruneExpiredNonExecutionLogs(double pruneAfter)
pruneAfter
- time period, after which logs expireCopyright © 2020. All rights reserved.