Class CoreMetricsModule

java.lang.Object
com.google.inject.AbstractModule
com.peterphi.std.guice.common.metrics.CoreMetricsModule
All Implemented Interfaces:
com.google.inject.Module

public class CoreMetricsModule extends com.google.inject.AbstractModule
  • Constructor Summary

    Constructors
    Constructor
    Description
    CoreMetricsModule(com.codahale.metrics.MetricRegistry registry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.codahale.metrics.MetricRegistry
    buildRegistry(boolean includeJvm)
     
    protected void
     
    com.codahale.metrics.health.HealthCheckRegistry
     
    com.codahale.metrics.MetricRegistry
     

    Methods inherited from class com.google.inject.AbstractModule

    addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding

    Methods inherited from class java.lang.Object

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

    • CoreMetricsModule

      public CoreMetricsModule(com.codahale.metrics.MetricRegistry registry)
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule
    • getMetricRegistry

      @Provides public com.codahale.metrics.MetricRegistry getMetricRegistry()
    • getHealthCheckRegistry

      @Provides public com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()
    • buildRegistry

      public static com.codahale.metrics.MetricRegistry buildRegistry(boolean includeJvm)