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