Package tigase.stats

Class StatisticsInvocationHandler<S>

  • All Implemented Interfaces:

    public class StatisticsInvocationHandler<S>
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    Generic class used by MD connection pools and repositories to wrap and measure method execution times.
    Created by andrzej on 15.12.2016.
    • Constructor Detail

      • StatisticsInvocationHandler

        public StatisticsInvocationHandler​(java.lang.String name,
                                           S instance,
                                           java.lang.Class... monitoredIfcs)
    • Method Detail

      • everyHour

        public void everyHour()
      • everyMinute

        public void everyMinute()
      • everySecond

        public void everySecond()
      • getStatistics

        public void getStatistics​(java.lang.String compName,
                                  java.lang.String prefix,
                                  StatisticsList list)
      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler