Class SqlPerformanceMonitorImpl
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqlbase.perfmon.SqlPerformanceMonitorImpl
-
- All Implemented Interfaces:
PerformanceMonitor
public class SqlPerformanceMonitorImpl extends Object implements PerformanceMonitor
-
-
Field Summary
Fields Modifier and Type Field Description static intLEVEL_DETAILSstatic intLEVEL_GLOBAL_STATISTICSstatic intLEVEL_LOCAL_STATISTICSstatic intLEVEL_NONE
-
Constructor Summary
Constructors Constructor Description SqlPerformanceMonitorImpl(int initialLevel, String statisticsFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearGlobalPerformanceInformation()List<OperationRecord>getFinishedOperations(String kind)intgetFinishedOperationsCount(String kind)PerformanceInformationImplgetGlobalPerformanceInformation()PerformanceInformationImplgetThreadLocalPerformanceInformation()OperationRecordregisterOperationFinish(long opHandle, int attempt)voidregisterOperationNewAttempt(long opHandle, int attempt)longregisterOperationStart(String kind, Class<?> objectType)voidsetConfiguration(RepositoryStatisticsReportingConfigurationType configuration)voidshutdown()voidstartThreadLocalPerformanceInformationCollection()Starts gathering thread-local performance information, clearing existing (if any).voidstopThreadLocalPerformanceInformationCollection()Stops gathering thread-local performance information, clearing existing (if any).
-
-
-
Field Detail
-
LEVEL_NONE
public static final int LEVEL_NONE
- See Also:
- Constant Field Values
-
LEVEL_GLOBAL_STATISTICS
public static final int LEVEL_GLOBAL_STATISTICS
- See Also:
- Constant Field Values
-
LEVEL_LOCAL_STATISTICS
public static final int LEVEL_LOCAL_STATISTICS
- See Also:
- Constant Field Values
-
LEVEL_DETAILS
public static final int LEVEL_DETAILS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SqlPerformanceMonitorImpl
public SqlPerformanceMonitorImpl(int initialLevel, String statisticsFile)
-
-
Method Detail
-
clearGlobalPerformanceInformation
public void clearGlobalPerformanceInformation()
- Specified by:
clearGlobalPerformanceInformationin interfacePerformanceMonitor
-
getGlobalPerformanceInformation
public PerformanceInformationImpl getGlobalPerformanceInformation()
- Specified by:
getGlobalPerformanceInformationin interfacePerformanceMonitor
-
startThreadLocalPerformanceInformationCollection
public void startThreadLocalPerformanceInformationCollection()
Description copied from interface:PerformanceMonitorStarts gathering thread-local performance information, clearing existing (if any).- Specified by:
startThreadLocalPerformanceInformationCollectionin interfacePerformanceMonitor
-
getThreadLocalPerformanceInformation
public PerformanceInformationImpl getThreadLocalPerformanceInformation()
- Specified by:
getThreadLocalPerformanceInformationin interfacePerformanceMonitor
-
stopThreadLocalPerformanceInformationCollection
public void stopThreadLocalPerformanceInformationCollection()
Description copied from interface:PerformanceMonitorStops gathering thread-local performance information, clearing existing (if any).- Specified by:
stopThreadLocalPerformanceInformationCollectionin interfacePerformanceMonitor
-
shutdown
public void shutdown()
-
registerOperationFinish
public OperationRecord registerOperationFinish(long opHandle, int attempt)
-
registerOperationNewAttempt
public void registerOperationNewAttempt(long opHandle, int attempt)
-
getFinishedOperations
public List<OperationRecord> getFinishedOperations(String kind)
-
getFinishedOperationsCount
public int getFinishedOperationsCount(String kind)
-
setConfiguration
public void setConfiguration(RepositoryStatisticsReportingConfigurationType configuration)
- Specified by:
setConfigurationin interfacePerformanceMonitor
-
-