Class MetricsRegistry


  • public class MetricsRegistry
    extends Object
    Author:
    Daniel Meyer
    • Constructor Detail

      • MetricsRegistry

        public MetricsRegistry()
    • Method Detail

      • getDbMeterByName

        public Meter getDbMeterByName​(String name)
      • getTelemetryMeters

        public Map<String,​Meter> getTelemetryMeters()
      • clearTelemetryMetrics

        public void clearTelemetryMetrics()
      • markOccurrence

        public void markOccurrence​(String name)
      • markOccurrence

        public void markOccurrence​(String name,
                                   long times)
      • markTelemetryOccurrence

        public void markTelemetryOccurrence​(String name,
                                            long times)
      • markOccurrence

        protected void markOccurrence​(Map<String,​Meter> meters,
                                      String name,
                                      long times)
      • createMeter

        public void createMeter​(String name)
        Creates a meter for both database and telemetry collection.
      • createDbMeter

        public void createDbMeter​(String name)
        Creates a meter only for database collection.