Class DBMetricsReporterProxy

  • All Implemented Interfaces:
    DBMetricsReporter, MetricsReporter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

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

      • DBMetricsReporterProxy

        public DBMetricsReporterProxy()
    • Method Detail

      • reportQueryExecutionTime

        public void reportQueryExecutionTime​(long milliseconds,
                                             java.lang.String queryTpe,
                                             java.lang.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
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.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