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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deregister
(PerformanceMonitor monitor) Returns global performance information aggregated from all monitors.Returns thread-local performance information aggregated from all monitors.void
register
(PerformanceMonitor monitor) void
Starts collection of thread local performance information in all monitors.
-
Constructor Details
-
SqlPerformanceMonitorsCollectionImpl
public SqlPerformanceMonitorsCollectionImpl()
-
-
Method Details
-
register
- Specified by:
register
in interfaceSqlPerformanceMonitorsCollection
-
deregister
- Specified by:
deregister
in interfaceSqlPerformanceMonitorsCollection
-
getGlobalPerformanceInformation
Description copied from interface:SqlPerformanceMonitorsCollection
Returns global performance information aggregated from all monitors.- Specified by:
getGlobalPerformanceInformation
in interfaceSqlPerformanceMonitorsCollection
-
getThreadLocalPerformanceInformation
Description copied from interface:SqlPerformanceMonitorsCollection
Returns thread-local performance information aggregated from all monitors.- Specified by:
getThreadLocalPerformanceInformation
in interfaceSqlPerformanceMonitorsCollection
-
startThreadLocalPerformanceInformationCollection
public void startThreadLocalPerformanceInformationCollection()Description copied from interface:SqlPerformanceMonitorsCollection
Starts collection of thread local performance information in all monitors.- Specified by:
startThreadLocalPerformanceInformationCollection
in interfaceSqlPerformanceMonitorsCollection
-