use of com.evolveum.midpoint.repo.api.SqlPerformanceMonitorsCollection in project midpoint by Evolveum.
the class Statistics method refreshRepositoryAndAuditPerformanceInformation.
private void refreshRepositoryAndAuditPerformanceInformation(TaskManagerQuartzImpl taskManager) {
SqlPerformanceMonitorsCollection monitors = taskManager.getSqlPerformanceMonitorsCollection();
PerformanceInformation sqlPerformanceInformation = monitors != null ? monitors.getThreadLocalPerformanceInformation() : null;
if (sqlPerformanceInformation != null) {
repositoryPerformanceInformation = sqlPerformanceInformation.toRepositoryPerformanceInformationType();
} else {
// probably we are not collecting these
repositoryPerformanceInformation = null;
}
}
Aggregations