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 int
LEVEL_DETAILS
static int
LEVEL_GLOBAL_STATISTICS
static int
LEVEL_LOCAL_STATISTICS
static int
LEVEL_NONE
-
Constructor Summary
Constructors Constructor Description SqlPerformanceMonitorImpl(int initialLevel, String statisticsFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearGlobalPerformanceInformation()
List<OperationRecord>
getFinishedOperations(String kind)
int
getFinishedOperationsCount(String kind)
PerformanceInformationImpl
getGlobalPerformanceInformation()
PerformanceInformationImpl
getThreadLocalPerformanceInformation()
OperationRecord
registerOperationFinish(long opHandle, int attempt)
void
registerOperationNewAttempt(long opHandle, int attempt)
long
registerOperationStart(String kind, Class<?> objectType)
void
setConfiguration(RepositoryStatisticsReportingConfigurationType configuration)
void
shutdown()
void
startThreadLocalPerformanceInformationCollection()
Starts gathering thread-local performance information, clearing existing (if any).void
stopThreadLocalPerformanceInformationCollection()
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:
clearGlobalPerformanceInformation
in interfacePerformanceMonitor
-
getGlobalPerformanceInformation
public PerformanceInformationImpl getGlobalPerformanceInformation()
- Specified by:
getGlobalPerformanceInformation
in interfacePerformanceMonitor
-
startThreadLocalPerformanceInformationCollection
public void startThreadLocalPerformanceInformationCollection()
Description copied from interface:PerformanceMonitor
Starts gathering thread-local performance information, clearing existing (if any).- Specified by:
startThreadLocalPerformanceInformationCollection
in interfacePerformanceMonitor
-
getThreadLocalPerformanceInformation
public PerformanceInformationImpl getThreadLocalPerformanceInformation()
- Specified by:
getThreadLocalPerformanceInformation
in interfacePerformanceMonitor
-
stopThreadLocalPerformanceInformationCollection
public void stopThreadLocalPerformanceInformationCollection()
Description copied from interface:PerformanceMonitor
Stops gathering thread-local performance information, clearing existing (if any).- Specified by:
stopThreadLocalPerformanceInformationCollection
in 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:
setConfiguration
in interfacePerformanceMonitor
-
-