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 Constructor Description SqlPerformanceMonitorsCollectionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidderegister(PerformanceMonitor monitor)PerformanceInformationgetGlobalPerformanceInformation()Returns global performance information aggregated from all monitors.PerformanceInformationgetThreadLocalPerformanceInformation()Returns thread-local performance information aggregated from all monitors.voidregister(PerformanceMonitor monitor)voidstartThreadLocalPerformanceInformationCollection()Starts collection of thread local performance information in all monitors.
-
-
-
Method Detail
-
register
public void register(PerformanceMonitor monitor)
- Specified by:
registerin interfaceSqlPerformanceMonitorsCollection
-
deregister
public void deregister(PerformanceMonitor monitor)
- Specified by:
deregisterin interfaceSqlPerformanceMonitorsCollection
-
getGlobalPerformanceInformation
public PerformanceInformation getGlobalPerformanceInformation()
Description copied from interface:SqlPerformanceMonitorsCollectionReturns global performance information aggregated from all monitors.- Specified by:
getGlobalPerformanceInformationin interfaceSqlPerformanceMonitorsCollection
-
getThreadLocalPerformanceInformation
public PerformanceInformation 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
-
-