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.
    • 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, getCounters, getCounters, getGauges, getGauges, getHistograms, getHistograms, getMeters, getMeters, getMetrics, getNames, getTimers, getTimers, histogram, meter, name, name, registerAll, remove, removeListener, removeMatching, 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