public class DBMetricsReporterProxy extends Object implements DBMetricsReporter, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
DBMetricsReporterProxy() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
boolean |
isEnabled() |
boolean |
isQueryMetricsEnabled() |
boolean |
isQueryStatementsMetricsEnabled() |
void |
reportQueryExecutionTime(long milliseconds,
String queryTpe,
String statementID)
Report the time it took to execute a query.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void reportQueryExecutionTime(long milliseconds,
String queryTpe,
String statementID)
DBMetricsReporterreportQueryExecutionTime in interface DBMetricsReportermilliseconds - 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 truepublic boolean isEnabled()
isEnabled in interface DBMetricsReporterisEnabled in interface MetricsReporterpublic boolean isQueryMetricsEnabled()
isQueryMetricsEnabled in interface DBMetricsReporterpublic boolean isQueryStatementsMetricsEnabled()
isQueryStatementsMetricsEnabled in interface DBMetricsReporterpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.