public interface DBMetricsReporter extends MetricsReporter
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled() |
boolean |
isQueryMetricsEnabled() |
boolean |
isQueryStatementsMetricsEnabled() |
void |
reportQueryExecutionTime(long milliseconds,
String queryTpe,
String statementID)
Report the time it took to execute a query.
|
void reportQueryExecutionTime(long milliseconds,
String queryTpe,
String statementID)
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 trueboolean isEnabled()
isEnabled in interface MetricsReporterboolean isQueryMetricsEnabled()
boolean isQueryStatementsMetricsEnabled()
Copyright © 2005–2018 Alfresco Software. All rights reserved.