Class SqlPerformanceMonitorsCollectionImpl
java.lang.Object
com.evolveum.midpoint.repo.sqlbase.perfmon.SqlPerformanceMonitorsCollectionImpl
- All Implemented Interfaces:
SqlPerformanceMonitorsCollection
@Experimental
public class SqlPerformanceMonitorsCollectionImpl
extends Object
implements SqlPerformanceMonitorsCollection
Maintains a collection of SQL performance monitors, typically one for the repository and one for SQL audit service.
Temporary implementation, created as a reaction to splitting single monitor into two in 4.2. It will be replaced by something more serious in the future.
BEWARE: All public classes operating on monitors must be synchronized.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidderegister(PerformanceMonitor monitor) Returns global performance information aggregated from all monitors.Returns thread-local performance information aggregated from all monitors.voidregister(PerformanceMonitor monitor) voidStarts collection of thread local performance information in all monitors.
-
Constructor Details
-
SqlPerformanceMonitorsCollectionImpl
public SqlPerformanceMonitorsCollectionImpl()
-
-
Method Details
-
register
- Specified by:
registerin interfaceSqlPerformanceMonitorsCollection
-
deregister
- Specified by:
deregisterin interfaceSqlPerformanceMonitorsCollection
-
getGlobalPerformanceInformation
Description copied from interface:SqlPerformanceMonitorsCollectionReturns global performance information aggregated from all monitors.- Specified by:
getGlobalPerformanceInformationin interfaceSqlPerformanceMonitorsCollection
-
getThreadLocalPerformanceInformation
Description copied from interface:SqlPerformanceMonitorsCollectionReturns thread-local performance information aggregated from all monitors.- Specified by:
getThreadLocalPerformanceInformationin interfaceSqlPerformanceMonitorsCollection
-
startThreadLocalPerformanceInformationCollection
public void startThreadLocalPerformanceInformationCollection()Description copied from interface:SqlPerformanceMonitorsCollectionStarts collection of thread local performance information in all monitors.- Specified by:
startThreadLocalPerformanceInformationCollectionin interfaceSqlPerformanceMonitorsCollection
-