Class DBMetricsReporterProxy

java.lang.Object
org.alfresco.metrics.db.DBMetricsReporterProxy
All Implemented Interfaces:
DBMetricsReporter, MetricsReporter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class DBMetricsReporterProxy extends Object implements DBMetricsReporter, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
  • Constructor Details

    • DBMetricsReporterProxy

      public DBMetricsReporterProxy()
  • Method Details

    • reportQueryExecutionTime

      public void reportQueryExecutionTime(long milliseconds, String queryTpe, String statementID)
      Description copied from interface: DBMetricsReporter
      Report the time it took to execute a query. queryType and statementID will be used as tags for the recorded metric
      Specified by:
      reportQueryExecutionTime in interface DBMetricsReporter
      Parameters:
      milliseconds - the delta time to record in milliseconds - must be positive
      queryTpe - 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

      public boolean isEnabled()
      Specified by:
      isEnabled in interface DBMetricsReporter
      Specified by:
      isEnabled in interface MetricsReporter
    • isQueryMetricsEnabled

      public boolean isQueryMetricsEnabled()
      Specified by:
      isQueryMetricsEnabled in interface DBMetricsReporter
    • isQueryStatementsMetricsEnabled

      public boolean isQueryStatementsMetricsEnabled()
      Specified by:
      isQueryStatementsMetricsEnabled in interface DBMetricsReporter
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException