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 SummaryConstructors
- 
Method SummaryModifier 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- 
SqlPerformanceMonitorsCollectionImplpublic SqlPerformanceMonitorsCollectionImpl()
 
- 
- 
Method Details- 
register- Specified by:
- registerin interface- SqlPerformanceMonitorsCollection
 
- 
deregister- Specified by:
- deregisterin interface- SqlPerformanceMonitorsCollection
 
- 
getGlobalPerformanceInformationDescription copied from interface:SqlPerformanceMonitorsCollectionReturns global performance information aggregated from all monitors.- Specified by:
- getGlobalPerformanceInformationin interface- SqlPerformanceMonitorsCollection
 
- 
getThreadLocalPerformanceInformationDescription copied from interface:SqlPerformanceMonitorsCollectionReturns thread-local performance information aggregated from all monitors.- Specified by:
- getThreadLocalPerformanceInformationin interface- SqlPerformanceMonitorsCollection
 
- 
startThreadLocalPerformanceInformationCollectionpublic void startThreadLocalPerformanceInformationCollection()Description copied from interface:SqlPerformanceMonitorsCollectionStarts collection of thread local performance information in all monitors.- Specified by:
- startThreadLocalPerformanceInformationCollectionin interface- SqlPerformanceMonitorsCollection
 
 
-