Package org.alfresco.metrics.db
Interface DBMetricsReporter
- All Superinterfaces:
MetricsReporter
- All Known Implementing Classes:
DBMetricsReporterProxy
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanvoidreportQueryExecutionTime(long milliseconds, String queryTpe, String statementID) Report the time it took to execute a query. queryType and statementID will be used as tags for the recorded metric
-
Method Details
-
reportQueryExecutionTime
Report the time it took to execute a query. queryType and statementID will be used as tags for the recorded metric- Parameters:
milliseconds- the delta time to record in milliseconds - must be positivequeryTpe- mandatory, the type of query that we report for: e.g: "select", "insert", "update", "delete"statementID- optional. if this parameter is not provided, a metric without it will be recorded; this parameter is used only if "isQueryStatementsMetricsEnabled()" is true
-
isEnabled
boolean isEnabled()- Specified by:
isEnabledin interfaceMetricsReporter
-
isQueryMetricsEnabled
boolean isQueryMetricsEnabled() -
isQueryStatementsMetricsEnabled
boolean isQueryStatementsMetricsEnabled()
-