Class DefaultMetrics

  • All Implemented Interfaces:
    Metrics, org.springframework.beans.factory.InitializingBean

    public class DefaultMetrics
    extends java.lang.Object
    implements Metrics, org.springframework.beans.factory.InitializingBean
    Spring bean for configuring metrics in this JVM.
    • Constructor Detail

      • DefaultMetrics

        public DefaultMetrics()
    • Method Detail

      • setSlf4jMinutes

        public void setSlf4jMinutes​(int minutes)
      • setBeginsWith

        public void setBeginsWith​(java.util.Collection<java.lang.String> prefixes)
      • setGraphiteAddress

        public void setGraphiteAddress​(java.lang.String address)
      • afterPropertiesSet

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

        public Counter counter​(java.lang.Object obj,
                               java.lang.String name)
        Specified by:
        counter in interface Metrics
      • timer

        public Timer timer​(java.lang.Object obj,
                           java.lang.String name)
        Specified by:
        timer in interface Metrics
      • histogram

        public Histogram histogram​(java.lang.Object obj,
                                   java.lang.String name)
        Specified by:
        histogram in interface Metrics