Class Metric

    • Method Detail

      • getMetric

        public static Metric getMetric​(Class<?> klass)
      • getMetric

        public static Metric getMetric​(String name)
      • getName

        public String getName()
        Name.
        Returns:
        name
      • incCount

        public int incCount()
        Increases count.
        Returns:
        new count
      • getCount

        public int getCount()
        Current count.
        Returns:
        count
      • logCount

        public void logCount()
        Logs the current count to the log.
      • logReport

        public static void logReport()
        Logs a sorted (desc) list of all currently registered metrics.