Class VitamMetricRegistry

  • All Implemented Interfaces:
    com.codahale.metrics.Metric, com.codahale.metrics.MetricSet

    public final class VitamMetricRegistry
    extends com.codahale.metrics.MetricRegistry
    A class extending the MetricRegistry to expose safe functions to register metrics.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.codahale.metrics.MetricRegistry

        com.codahale.metrics.MetricRegistry.MetricSupplier<T extends com.codahale.metrics.Metric>
    • Constructor Summary

      Constructors 
      Constructor Description
      VitamMetricRegistry()
      VitamMetricRegistry constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends com.codahale.metrics.Metric>
      T
      register​(java.lang.String name, T metric)
      Return the Metric registered under this name; or create and register a new metric if none is registered.
      • Methods inherited from class com.codahale.metrics.MetricRegistry

        addListener, buildMap, counter, counter, gauge, getCounters, getCounters, getGauges, getGauges, getHistograms, getHistograms, getMeters, getMeters, getMetrics, getNames, getTimers, getTimers, histogram, histogram, meter, meter, name, name, registerAll, registerAll, remove, removeListener, removeMatching, timer, timer
      • Methods inherited from class java.lang.Object

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

      • VitamMetricRegistry

        public VitamMetricRegistry()
        VitamMetricRegistry constructor
    • Method Detail

      • register

        public <T extends com.codahale.metrics.Metric> T register​(java.lang.String name,
                                                                  T metric)
        Return the Metric registered under this name; or create and register a new metric if none is registered.
        Overrides:
        register in class com.codahale.metrics.MetricRegistry
        Parameters:
        name - the name of the metric
        Returns:
        a new or pre-existing metric