Class MetricsContext

  • All Implemented Interfaces:
    io.engineblock.activityapi.core.MetricRegistryService

    public class MetricsContext
    extends java.lang.Object
    implements io.engineblock.activityapi.core.MetricRegistryService
    • Constructor Summary

      Constructors 
      Constructor Description
      MetricsContext()  
    • Method Summary

      Modifier and Type Method Description
      static MetricsContext getInstance()  
      com.codahale.metrics.MetricRegistry getMetricRegistry()  
      com.codahale.metrics.MetricRegistry getMetrics()  
      MetricReporters getReporters()  
      static com.codahale.metrics.MetricRegistry metrics()
      Convenience method to unclutter code.
      • Methods inherited from class java.lang.Object

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

      • MetricsContext

        public MetricsContext()
    • Method Detail

      • getMetrics

        public com.codahale.metrics.MetricRegistry getMetrics()
      • metrics

        public static com.codahale.metrics.MetricRegistry metrics()
        Convenience method to unclutter code. This will be used everywhere.
        Returns:
        The default metric context.
      • getMetricRegistry

        public com.codahale.metrics.MetricRegistry getMetricRegistry()
        Specified by:
        getMetricRegistry in interface io.engineblock.activityapi.core.MetricRegistryService