Search in sources :

Example 1 with SqlPerformanceMonitorsCollection

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;
    }
}
Also used : PerformanceInformation(com.evolveum.midpoint.repo.api.perf.PerformanceInformation) OperationsPerformanceInformation(com.evolveum.midpoint.util.statistics.OperationsPerformanceInformation) SqlPerformanceMonitorsCollection(com.evolveum.midpoint.repo.api.SqlPerformanceMonitorsCollection)

Aggregations

SqlPerformanceMonitorsCollection (com.evolveum.midpoint.repo.api.SqlPerformanceMonitorsCollection)1 PerformanceInformation (com.evolveum.midpoint.repo.api.perf.PerformanceInformation)1 OperationsPerformanceInformation (com.evolveum.midpoint.util.statistics.OperationsPerformanceInformation)1