Class Metrics


  • public class Metrics
    extends java.lang.Object
    Utility to collect statistical information.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Metrics.MetricType
      Constants which are used as metric types.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Map<Metrics.MetricType,​java.lang.Integer> counts  
    • Constructor Summary

      Constructors 
      Constructor Description
      Metrics()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String flush()
      Get all collected data as a string and clear it afterwards.
      static void increaseCount​(Metrics.MetricType type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • counts

        public static final java.util.Map<Metrics.MetricType,​java.lang.Integer> counts
    • Constructor Detail

      • Metrics

        public Metrics()
    • Method Detail

      • flush

        public static java.lang.String flush()
        Get all collected data as a string and clear it afterwards.